Part Number Hot Search : 
90MNOATA A60T3 00206 IRLM6402 GMS81008 FQPF9N EN2063 EM83807
Product Description
Full Text Search
 

To Download AN983 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 AN983B/AN983BL
PCI/miniPCI-to-Ethernet LAN Controller
DATASHEET Rev. 1.8 MAY. 2003
ADMtek.com.tw
Information in this document is provided in connection with ADMtek products. ADMtek may make changes to specifications and product descriptions at any time, without notice. Designers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined." ADMtek reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from future changes to them. The products may contain design defects or errors known as errata, which may cause the product to deviate from published specifications. Current characterized errata are available on request. To obtain latest documents, please contact your local ADMtek sales office or your distributor or visit ADMtek's website at http://www.ADMtek.com.tw *Third-party brands and names are the property of their respective owners.
AN983B
Datasheet Revision History
Revision Date Oct, 2000 Feb, 2001 Mar, 2001 Revision
0.1 1.0 1.1
PCI/miPCI Fast Ethernet Controller with integrated PHY
Description
Draft data sheet for review First release Add CSR15.bit28 MRXCK Add CSR18.bit26 PMEP Add CSR18.bit27 PMEPEN
Sep, 2001 Sep, 2001 Sep, 2001
1.2 1.3 1.4
Add 25MHz crystal accuracy Revise PHY registers Revise product logo of Pin assignment diagram P.17 MrxD0~D3 P.23 CIOSA : 1 means enable ; 0 means disable P.14 Add LED info to pin diagram
JULY, 2002
1.5
P.25 Offset 80h, DID default value : 0981h P.40 CSR18[25] / PWRS_clr : 1 means PCI_reset rising will clear CR49[1:0]/PWRS
JULY, 2002 JULY, 2002 MAY, 2003
1.6 1.7 1.8
P.85 FIG21, FIG22, FIG23, FIG24 added for MII interface signal timing. P.45 Unicast registers added P.69 Modify some error statement about Loop-back Operation of transceiver Table- 1 Revision History
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
2
AN983B
CONTENTS
PCI/miPCI Fast Ethernet Controller with integrated PHY
Datasheet Revision History................................................................................. 2 1. GENERAL DESCRIPTIONS...................................................................................... 9 2. SYSTEM BLOCK DIAGRAM.................................................................................. 10 3. FEATURES ................................................................................................................. 11 INDUSTRY STANDARD ............................................................................................ 11 FIFO...................................................................................................................... 11 PCI I/F................................................................................................................... 11 EEPROM/BOOT ROM I/F .................................................................................... 11 MAC/PHYSICAL .................................................................................................... 12 LED DISPLAY........................................................................................................ 12 MISCELLANEOUS ................................................................................................... 12 4. BLOCK DIAGRAM ................................................................................................... 13 5. PIN ASSIGNMENT DIAGRAM............................................................................... 14 6. PIN DESCRIPTION................................................................................................... 15 7. REGISTERS AND DESCRIPTORS DESCRIPTION............................................ 19 7.1 AN983B configuration registers ......................................................................... 20 7.1.1. AN983B configuration registers list ....................................................... 20 7.1.2. AN983B configuration registers table .................................................... 21 7.1.3 AN983B configuration registers descriptions.......................................... 22 CR0 (offset = 00h), LID - Loaded Identification number of Device and Vendor ........................................................................................................................... 22 CR1 (offset = 04h), CSC - Configuration command and status ....................... 22 CR2 (offset = 08h), CC - Class Code and Revision Number ........................... 23 CR3 (offset = 0ch), LT - Latency Timer........................................................... 23 CR4 (offset = 10h), IOBA - I/O Base Address................................................. 24 CR5 (offset = 14h), MBA - Memory Base Address ......................................... 24 CR11 (offset = 2ch), SID - Subsystem ID. ....................................................... 24 CR12 (offset = 30h), BRBA - Boot ROM Base Address. ................................ 24
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
3
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
CR13 (offset = 34h), CP - Capabilities Pointer. ............................................... 25 CR15 (offset = 3ch), CI - Configuration Interrupt............................................ 25 CR16 (offset = 40h), DS - Driver Space for special purpose. .......................... 25 CR32 (offset = 80h), SIG - Signature of AN983B ........................................... 25 CR48 (offset = c0h), PMR0, Power Management Register0............................ 26 CR49 (offset = c4h), PMR1, Power Management Register 1........................... 26 7.2. PCI Control/Status registers.............................................................................. 28 7.2.1. PCI Control/Status registers list........................................................... 28 7.2.2. Control/Status register description.......................................................... 29 CSR0 (offset = 00h), PAR - PCI Access Register ............................................ 29 CSR1 (offset = 08h), TDR - Transmit demand register.................................... 30 CSR2 (offset = 10h), RDR - Receive demand register..................................... 30 CSR3 (offset = 18h), RDB - Receive descriptor base address ......................... 30 CSR5 (offset = 28h), SR - Status register ......................................................... 30 CSR6 (offset = 30h), NAR - Network access register ...................................... 32 CSR7 (offset = 38h), IER - Interrupt Enable Register...................................... 34 CSR8 (offset = 40h), LPC - Lost packet counter.............................................. 35 CSR9 (offset = 48h), SPR - Serial port register................................................ 35 CSR11 (offset = 58h), TMR -General-purpose Timer...................................... 36 CSR13 (offset = 68h), WCSR -Wake-up Control/Status Register................... 36 CSR14 (offset = 70h), WPDR -Wake-up Pattern Data Register...................... 37 CSR15 (offset = 78h), WTMR - Watchdog timer ............................................ 38 CSR16 (offset = 80h), ACSR5 - Assistant CSR5 (Status register 2)................ 39 CSR17 (offset = 84h), ACSR7- Assistant CSR7 (Interrupt enable register 2). 40 CSR18 (offset = 88h), CR - Command Register, bit31 to bit16....................... 40 CSR19 (offset = 8ch) - PCIC, PCI bus performance counter ........................... 42 CSR20 (offset = 90h) - PMCSR, Power Management Command and Status .. 42 CSR21 (offset = 94h) - WTDP, The current working transmit descriptor pointer ........................................................................................................................... 43 CSR22 (offset = 98h) - WRDP, The current working receive descriptor pointer ........................................................................................................................... 43 CSR23 (offset = 9ch) - TXBR, transmit burst count / time-out........................ 43 CSR24 (offset = a0h) - FROM, Flash ROM (also the boot ROM) port ........... 44 CSR25 (offset = a4h) - PAR0, physical address register 0............................... 44
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
4
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
CSR26 (offset = a8h) - PAR1, physical address register 1............................... 44 CSR27 (offset = ach) - MAR0, multicast address register 0 ............................ 45 CSR28 (offset = b0h) - MAR1, multicast address register 1............................ 45 Operation Mode Register (Memory base offset 0FCh) .................................... 46 7.3. PHY Registers (ACCESSED by csr9 MDI/MMC/MDO/MDC) ......................... 47 7.3.1. Transceiver registers Descriptions .......................................................... 47 7.4. Descriptors and Buffer Management................................................................. 51 7.4.1 Receive descriptor.................................................................................... 52 7.4.1.1 Receive Descriptor Table.............................................................. 52 7.4.1.2 Receive Descriptor Descriptions................................................... 52 RDES0 .............................................................................................................. 52 RDES1 .............................................................................................................. 53 RDES2 .............................................................................................................. 53 RDES3 .............................................................................................................. 53 7.4.2. Transmit Descriptor ................................................................................ 53 7.4.2.1. Transmit Descriptor Table ........................................................... 53 7.4.2.2. Transmit Descriptor Descriptions ................................................ 54 TDES0............................................................................................................... 54 TDES1............................................................................................................... 54 TDES2............................................................................................................... 55 TDES3............................................................................................................... 55 8. FUNCTIONAL DESCRIPTIONS............................................................................. 56 8.1 Initialization Flow............................................................................................... 56 8.2 Network Packet Buffer Management .................................................................. 57 8.2.1 Descriptor Structure Types ...................................................................... 57 8.2.2 The point of descriptor management ....................................................... 59 8.3 Transmit Scheme and Transmit Early Interrupt ................................................. 61 8.3.1 Transmit flow........................................................................................... 61 8.3.2 Transmit pre-fetch data flow.................................................................... 61 8.3.3 Transmit early interrupt Scheme.............................................................. 62 8.4 Receive scheme and Receive early interrupt scheme.......................................... 63 8.5 Network Operation.............................................................................................. 65 8.5.1 MAC Operation ....................................................................................... 65 8.5.2 Transceiver Operation.............................................................................. 66
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
5
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
8.5.3 Flow Control in Full Duplex Application................................................ 69 8.6 LED Display Operation ...................................................................................... 72 8.6.1 First mode - 3 LED displays for .............................................................. 72 8.6.2 Second mode - 4 LED displays for ......................................................... 72 8.7 Reset Operation .................................................................................................. 72 8.7.1 Reset whole chip ...................................................................................... 72 8.7.2 Reset Transceiver only............................................................................. 72 8.8 Wake on LAN Function....................................................................................... 73 8.8.1 The Magic Packet format......................................................................... 73 8.8.2 The Wake on LAN operation................................................................... 73 8.9 ACPI Power Management Function................................................................... 73 8.9.1 Power States............................................................................................. 74 Power State ....................................................................................................... 74 9. GENERAL EEPROM FORMAT DESCRIPTION................................................. 76 Connection Type Definition ............................................................................. 76 10. ELECTRICAL SPECIFICATIONS AND TIMINGS........................................... 78 10.1 Absolute Maximum Ratings .............................................................................. 78 10.2 DC Specifications.............................................................................................. 78 General DC Specifications................................................................................ 78 PCI Interface DC Specifications....................................................................... 78 Flash/EEPROM Interface DC Specifications ................................................... 78 10.3 AC Specifications .............................................................................................. 79 PCI Signaling AC Specifications for 3.3V ....................................................... 79 10.4 Timing Specifications........................................................................................ 79 PCI Clock Specifications .................................................................................. 79 PCI Timings ...................................................................................................... 80 Flash Interface Timings .................................................................................... 81 EEPROM Interface Timings (AC/AD)............................................................. 83 11. PACKAGE................................................................................................................. 87 Dimensions for 128 -pin PQFP Package(AN983B)......................................... 87 Dimensions for 128 -pin LQFP Package(AN983BL) ...................................... 88 12. LAYOUT GUIDE (REV.1.0B) .................................................................................. 89
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
6
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
Layout Guide Revision History: ....................................................................... 89 12.1 placement .......................................................................................................... 89 12.2 trace routing...................................................................................................... 89 12.3 Vcc and GND .................................................................................................... 90
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
7
AN983B
FIGURE INDEX
Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig Fig 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
PCI/miPCI Fast Ethernet Controller with integrated PHY
System diagram of the AN983B ...................................................................................10 Block diagram of the AN983B .....................................................................................13 Pin assignment ..............................................................................................................14 Initializatin flow............................................................................................................56 Ring structure of frame buffer ......................................................................................57 Chain structure of frame buffer.....................................................................................58 Transmit pointers for descriptor management ..............................................................59 Receive pointers for descriptor management................................................................60 Transmit flow................................................................................................................61 Transmit data flow of pre-fetch data...........................................................................62 Transmit normal interrupt and early interrupt comparison .........................................62 Receive data flow (without early interrupt and with early interrupt)..........................63 Detailed receive early interrupt flow ..........................................................................64 MAC Control Frame Format ......................................................................................70 PAUSE operation receive state diagram.....................................................................71 PCI Clock Waveform..................................................................................................79 PCI Timings................................................................................................................81 Flash write timings......................................................................................................82 Flash read timings.......................................................................................................83 Serial EEPROM timing ..............................................................................................84 Receive signal timing relations at the MII ................................................87 MDIO sourced by MAC.......................................................................87
Transmit signal timing relationships at the MII.......................................................887
22 23 24 25
MDIO sourced by PHY ....................................................................87 Package outline for the AN983B/AN983BL .........................................87
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
8
AN983B 1. GENERAL DESCRIPTIONS
PCI/miPCI Fast Ethernet Controller with integrated PHY
The AN983B is a high performance PCI Fast Ethernet controller with integrated physical layer interface for 10BASE-T and 100BASE-TX application. The AN983B was designed with advanced CMOS technology to provide glueless 32-bit bus master interface for PCI, boot ROM interface, CSMA/CD protocol for Fast Ethernet, as well as the physical media interface for 100BASE-TX of IEEE802.3u and 10BASE-T of IEEE802.3. The auto-negotiation function is also supported for speed and duplex detection. The AN983B can be programmed as MAC-only controller. In this mode, it provides the standard MII interface to link to an external PHY. With this mode, it can be connected to the HomePNA PHY to support the HomePNA networking solution or Homeplug Phy(Power-line solution) to support Homeplug networking solution.. The AN983B provides both half-duplex and full-duplex operation, as well as support for full-duplex flow control. It provides long FIFO buffers for transmission and receiving, and early interrupt mechanism to enhance performance. The AN983B also supports ACPI and PCI compliant power management function and Magic Packet wake-up event.
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
9
AN983B 2. SYSTEM BLOCK DIAGRAM
PCI/miPCI Fast Ethernet Controller with integrated PHY
EEPROM PCI Interface
Boot ROM Transformer
AN983B
25MHz Crystal LEDs
RJ-45
Fig - 1 System diagram of the AN983B
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
10
AN983B 3. FEATURES
INDUSTRY STANDARD
PCI/miPCI Fast Ethernet Controller with integrated PHY
IEEE802.3u 100BASE-TX and IEEE802.3 10BASE-T compliant Support for IEEE802.3x flow control IEEE802.3u Auto-Negotiation support for 10BASE-T and 100BASE-TX PCI Specification 2.2 compliant ACPI and PCI power management Ver.1.1 compliant Support PC99 wake on LAN
FIFO
Provides two independent long FIFOs with 2k bytes each for transmission and receiving Pre-fetch up to two transmit packets to minimize inter frame gap (IFG) to 0.96us Retransmits collided packet without reload from host memory within 64 bytes. Automatically retransmits FIFO under-run packet with maximum drain threshold until 3 times retry failure and that will not influence the registers and transmit threshold of next packet
PCI I/F
Provides 32-bit PCI bus master data transfer Supports PCI clock with frequency from 0Hz to 33MHz Supports network operation with PCI system clock from 20MHz to 33MHz Provides performance meter, PCI bus master latency timer, for tuning the threshold to enhance the performance Provides burst transmit packet interrupt and transmit/receive early interrupt to reduce host CPU utilization Supports memory-read, memory-read-line, memory-read-multiple, memory-write, memory-write-and-invalidate command while being bus master Supports big or little endian byte ordering
EEPROM/BOOT ROM I/F
Provides write-able Flash ROM and EPROM as boot ROM with size up to 128kB Provides PCI to access boot ROM by byte, word, or double word Re-writes Flash boot ROM through I/O port by programming register
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
11
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
Provides serial interface for read/write 93C46/66 EEPROM Automatically loads device ID, vendor ID, subsystem ID, subsystem vendor ID, Maximum-Latency, and Minimum-Grand from the 64 byte contents of 93C46/66 after PCI reset de-asserted in PCI environment.
MAC/PHYSICAL
Integrates the whole Physical layer functions of 100BASE-TX and 10BASE-T Provides Full -duplex operation on both 100Mbps and 10Mbps modes Provides Auto-negotiation (NWAY) function of full/half duplex operation for both 10 and 100 Mbps Provides transmit wave-shaper, receive filters, and adaptive equalizer Provides MLT-3 transceiver with DC restoration for Base-line wander compensation Provides MAC and Transceiver (TXCVR) loop-back modes for diagnostic Builds in Stream Cipher Scrambler/ De-scrambler and 4B/5B encoder/decoder Supports external transmit transformer with turn ratio 1:1 Supports external receive transformer with turn ratio 1:1
LED DISPLAY
3 LEDs displays scheme provided:
100Mbps(on) or Speed 10(off) Link (keeps on when link ok) or Activity (will be blinking with 10Hz when receiving or transmitting but not collision) FD (keeps on when in Full duplex mode) or Collision (will be blinking with 20Hz when colliding)
4 LEDs displayed scheme provided:
100Mbps and Link (keep on when link and 100Mpbs) 10Mbps and Link (keep on when link and 10Mpbs) Activity (will be blinking with 10Hz when receiving or transmitting but not collision) FD (keeps on when in Full duplex mode) or Collision (will be blinking with 20Hz when colliding)
MISCELLANEOUS
Provides 128-pin QFP/LQFP packages for PCI/mini-PCI interfaces 3.3V power supply with 5V/3.3V I/O tolerance
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
12
AN983B 4. BLOCK DIAGRAM
PCI/miPCI Fast Ethernet Controller with integrated PHY
C R /C SR /X R R egiste rs
DMA C ontrol
P ow er M an a g em e n t C ontrol
LEDs D ispla y
P C I I/F C on trol
T ran sit F IF O
T ransm it M AC
B oot R O M I/F
F IF O C ontrol
L oo p-bac k C ontrol
1 00B A S E -T X 10B A S E -T P h y sica l M edium I/F
EEPROM I/F
R ec eive F IF O
R eceive M AC
C lock G e nerator
Fig - 2 Block diagram of the AN983B
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
13
AN983B 5. PIN ASSIGNMENT DIAGRAM
PCI/miPCI Fast Ethernet Controller with integrated PHY
bra 16/LED-FD/Co 105
BrWE#/Rxclk
BrOE#/Txclk
BrD3/MrxD3
BrD2/MrxD2
BrD1/MrxD1
BrD0/MrxD0
bra 10/Mtxen
LED-100Lnk 104
BrD4/Mrxdv
bra 9/MtxD3
bra 8/MtxD2
bra 7/MtxD1
bra 6/MtxD0
bra 5/Mtxerr
128
127
126
125
124
123
122
121
120
119
118
117
116
115
114
113
112
111
110
109
108
107
106
bra 13 bra 14 bra 15 VAAR TST3 RXIN RXIP GNDR TST0 TST1 TST2 NC NC GNDREEF RIBB VAAREF XTLN XTLP GNDT TXOP TXON VAAT Vdd-IR INTA# RST# Vss-IR pci_clk Vdd-pci gnt# req# pme# Vss-pci AD31 AD30 AD29 AD28 Vdd-pci AD27
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87
LED-10Lnk
bra 11/Mdc
BrD5/EDO
BrD7/ECK
BrD6/EDI
BrCS#
Vdd-3
bra 12
EECS
Vss-3
bra 4
LED-Act bra 3/Mdio bra 2/Mcrs bra 1/Mcol bra 0/Mrxerr PMEP Vcc_detect Vaux AD0 AD1 clk-run Vss-pci AD2 AD3 AD4 Vdd-pci AD5 AD6 AD7 CBEB0 Vss-pci AD8 Vss-IR AD9 AD10 Vdd-pci AD11 AD12 Vdd-IR AD13 AD14 Vss-pci AD15 CBEB1 PAR Vdd-pci SERR# PERR#
AN983B/AN983BL
86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 59 60 61 62 Vss-pci 63 DSEL# 64 STOP#
45
46
47
48
49
50
51
52
53
54
55
56
57
58 Vdd-pci
FRAME#
Vdd-pci
Fig - 3 Pin assignment
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
TRDY#
CBEB3
CBEB2
Vss-pci
Vss-pci
Vdd-IR
IRDY#
Vss-IR
IDSEL
AD26
AD25
AD24
AD23
AD22
AD21
AD20
AD19
AD18
AD17
AD16
14
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
6. PIN DESCRIPTION
Pin # Name Type Description
PCI INTERFACE
24 25 INTA# RST# O/D I PCI interrupt request. AN983B asserts this signal when one of the interrupt events occurs. PCI signal to initialize the AN983B. The active reset signal should be sustained at least 100s to guarantee that the AN983B has completed the initializing activity. During the reset period, all the output pins of AN983B will be set to tri-state and all the O/D pins are floated. 27 PCI-CLK I This PCI clock inputs to AN983B for PCI relative circuits as the synchronized timing base with PCI bus. The Bus signals are recognized on rising edge of PCI-CLK. In order to let network operating properly, the frequency range of PCI-CLK is limited between 20MHz and 33MHz when network operating. 29 30 31 GNT# REQ# PME# I O I/O PCI Bus Granted. This signal indicates that the PCI bus request of AN983B has been accepted. PCI Bus Request. Bus master device want to get bus access right The Power Management Event signal is an open drain, active low signal. When WOL-bit 18 of CSR 18 be set into "1", means that the AN983B is set into Wake On LAN mode. In this mode, when the AN983B receives a Magic Packet frame from network then the AN983B will active this signal too. In the Wake On LAN mode, when LWS-bit (bit 17) of CSR18 is set into "1" means the LAN-WAKE signal is HP-style signal, otherwise it is IBM-style signal. 33,34 35,36 38,39 40,41 46,47 49,50 51,53 54,56 70,72 73,75 76,78 79,81 84,85 86,88 89,90 93,94 AD-31, 30 AD-29, 28 AD-27, 26 AD-25, 24 AD-23, 22 AD-21, 20 AD-19, 18 AD-17, 16 AD-15, 14 AD-13, 12 AD-11, 10 AD-9, 8 AD-7, 6 AD-5, 4 AD-3, 2 AD-1, 0 I/O Multiplexed address data pin of PCI Bus
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
15
AN983B
43 57 69 83 44 59 60 61 63 64 65 66 68 92 C-BEB3 C-BEB2 C-BEB1 C-BEB0 IDSEL FRAME# IRDY# TRDY# DEVSEL# STOP# PERR# SERR# PAR Clk-run I I/O I/O I/O I/O I/O I/O O/D I/O I/O O/D I/O
PCI/miPCI Fast Ethernet Controller with integrated PHY
Bus command and byte enable
Initialization Device Select. This signal is asserted when host issues the configuration cycles to the AN983B. Begin and duration of bus access, driven by master device Master device is ready to data transaction Slave device is ready to data transaction Device select, target is driving to indicate the address is decoded Target device request the master device to stop the current transaction Data parity error is detected, driven by the agent receiving data Address parity error Parity, even parity (AD [31:0] + C/BE [3:0]), master drives par for address and write data phase, target drives par for read data phase Clock Run for PCI system. In the normal operation situation, Host should assert this signal to indicate AN983B about the normal situation. On the other hand, when Host will deassert this signal when the clock is going down to a non-operating frequency. When AN983B recognizes the deasserted status of clk-run, then it will assert clk-run to request host to maintain the normal clock operation. When clk-run function is disabled then the AN983B will set clk-run in tri-state.
BOOTROM/EEPROM INTERFACE
98~101, BrA0 ~16 106,108 ~110, 112, 113, 126, 127, 128, 1~3, 105 116~ 120, 121~ 123, BrD5/EDO BrD6/EDI BrD7/ECK 124 125 114 EECS BrCS# BrOE# IO/O Inputs/Output data for AN983B; EDO: Data Output of serial EEPROM IO/I IO/I O O O Inputs/Output data for AN983B; EDI: Data Input of serial EEPROM Inputs/Output data for AN983B; ECK: Clock input of serial EEPROM, the AN983B outputs clock signal to EEPROM Chip Select of serial EEPROM BootROM Chip Select BootROM Read Enable for flash ROM application BrD0~4 IO BootROM data bus bit (0~7) I/O ROM data bus Provides up to 128kB EPROM or Flash-ROM application space.
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
16
AN983B
115 BrWE# O
PCI/miPCI Fast Ethernet Controller with integrated PHY
BootROM Write Enable for flash ROM application.
MII INTERFACE (PROGRAM AN983B AS MAC-ONLY MODE, SET FCH [2:0] = 100B)
127 126 112,113 108 101 120 100 116 ~ 119 99 98 115 114 Mcol Mrxerr Rxclk Txclk I I I I MII Collision MII Receive Error MII Receive Clock MII Transmit Clock Mtxerr Mdio Mrxdv Mcrs MrxD0~3 O I/O I I I MII Transmit Error MII Management Data I/O MII Receive Data Valid MII Carrier Sense MII Receive Data Mdc Mtxen O O O MII Management Data Clock MII Transmit Enable MII Transmit Data
109,110 MtxD0~3
PHYSICAL INTERFACE
18, 17 6,7 20,21 15 XTLP, XTLN I RXIN, RXIP I Crystal inputs. To be connected to a 25MHz crystal with 50ppm accuracy The differentials receive inputs of 100BASE-TX or 10BASE-T, these pins directly input from Magnetic. TXOP, TXON O RIBB I I O The differential Transmit outputs of 100BASE-TX or 10BASE-T, these pins directly output to Magnetic. Reference Bias Resistor. To be tied to an external 10.0K (1%) resistor which should be connected to the analog ground at the other end. 9,10,11, TST0, TST1 5 12,13 TST2, TST3 NC Test pin
LED DISPLAY & MISCELLANEOUS
102 Led-Act (Led-lnk/act) O 4Leds mode: LED display for Activity status. This pin will be driven on with 10 Hz blinking frequency when either effective receiving or transmitting is detected. (3Led mode): LED display for link and activity status. This pin will be driven on continually when a good Link test is detected. This pin will be driven on with 10 Hz blinking frequency when either effective receiving or transmitting is detected. 103 Led-10Lnk (Led-fd/col) O 4Leds mode: LED display for 10M b/s speed. This pin will be driven on continually when the 10M b/s network operating speed is detected. (3Leds mode): LED display for Full Duplex or Collision status. This pin will be driven on continually when a full duplex configuration is detected. This pin
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
17
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
will be driven on with 20 Hz blinking frequency when a collision status is detected in the half duplex configuration. 104 Led-100Lnk (Led-speed) O 4Leds mode: LED display for 100Mb/s speed. This pin will be driven on continually when the 100Mb/s network operating speed is detected. (3Leds mode): LED display for 100M b/s or 10M b/s speed. This pin will be driven on continually when the 100M b/s network operating speed is detected. 105 Led-Fd /Col O 4Leds mode: LED display for Full Duplex or Collision status. This pin will be driven on continually when a full duplex configuration is detected. This pin will be driven on with 20 Hz blinking frequency when a collision status is detected in the half duplex configuration. (3Leds mode): None 95 Vaux I When this pin is asserted, it indicates an auxiliary power source is supported ACPI purpose, for detecting the auxiliary power source. This pin should be or-wired connected to 1) 3.3V when 3.3Vaux support, or 2) 5V when 5Vaux support from 3-way switch. 96 Vcc-detect I When this pin is asserted, it indicates PCI power source is supported. ACPI purpose, for detecting the main power is remained or not, This pin should be connected to PCI bus power source +5V. 97 PMEP O This signal is used as the WOL pin. It provides a programmable positive or negative pulse with approximately 50ms width.
DIGITAL POWER PINS
26,32,42,45,52,62,71,80,82,91,107, 23,28,37,48,55,58,67,74,77,87,111 Vss-pci, Vss-IR, Vss-3 Vdd-pci Vdd-IR, Vdd-3 Connect to 3.3V
ANALOG POWER PINS
4,16,22 8,14,19 VAAR, VAAREF, VAAT 3.3V GNDR, GNDREF, GNDT
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
18
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
7. REGISTERS AND DESCRIPTORS DESCRIPTION
There are three kinds of registers designed for AN983B. They are AN983B configuration registers, PCI control/status registers, and Transceiver control/status registers. The AN983B configuration registers are used to initialize and configure the AN983B for identifying and querying the AN983B. The PCI control/status registers are used to communicate between host and AN983B. Host can initialize, control, and read the status of the AN983B through the mapped I/O or memory address space. Regarding the registers of transceiver portion of AN983B, it includes 7 basic registers which are defined according to the clause 22 "Reconciliation Sub-layer and Media Independent Interface" and clause 28 "Physical Layer link signaling for 10 Mb/s and 100 Mb/s Auto-Negotiation on twisted pair" of IEEE802.3u standard. The AN983B also provides receive and transmit descriptors for packet buffering and management. These descriptors are described in the following section
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
19
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
7.1 AN983B CONFIGURATION REGISTERS
With the configuration registers software driver can initialize and configure AN983B. All of the contents of configuration registers are set to default value when there is any hardware reset occurs. On the other hand, there is no effect to their value when the software reset occurs. To access these configuration registers AN983B provides byte, word, and double word data access length.
7.1.1. AN983B CONFIGURATION REGISTERS LIST
Offset 00h 04h 08h 0ch 10h 14h 28h 2ch 30h 34h 3ch 40h 80h c0h c4h Index
CR0 CR1 CR2 CR3 CR4 CR5 CR10 CR11 CR12 CR13 CR15 CR16 CR32 CR48 CR49
Name
LID CSC CC LT IOBA MBA CIS SID BRBA CP CINT DS SIG PMR0 PMR1
Descriptions
Loaded device ID and vendor ID Configuration Status and Command Class Code and revision number Latency Timer IO Base Address Memory Base Address Card Information Structure (for Card bus) Subsystem ID and vendor ID Boot ROM Base Address (ROM size = 256KB) Capability Pointer Configuration Interrupt Driver space for special purpose Signature of AN983B Power Management Register 0 Power Management Register 1
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
20
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
7.1.2. AN983B CONFIGURATION REGISTERS TABLE
Offset
00h 04h 08h 0ch 10h 14h 18h~ 24h 28h 2ch 30h 34h 38h 3ch 40h 80h c0h c4h
b31
-----------
b16
b15
Vendor ID* Command ------
----------
b0
Device ID* Status Base Class Subclass Code ----------Base I/O address Base memory address
Reserved
Revision #
Step #
Latency timer
Cache line size
ROM-im* Address space offset* Subsystem ID* Boot ROM base address
Reserved Reserved
Add-indi* Subsystem vendor ID*
Cap_Ptr
Max_Lat* Min_Gnt* Reserved Signature of AN983B PMC Reserved
Interrupt pin Driver Space Next_Item_Ptr PMCSR
Interrupt line Reserved Cap_ID
Note: * Automatically recalled from EEPROM when PCI reset is deserted CIS (28h) is a read-only register DS (40h), bit15-8, is read/write able register SIG (80h) is hard wired register, read only.
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
21
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
7.1.3 AN983B CONFIGURATION REGISTERS DESCRIPTIONS
CR0 (offset = 00h), LID - Loaded Identification number of Device and Vendor
Bit # 31~16 15~0 Name
LDID LVID
Descriptions
Loaded Device ID, the device ID number loaded from serial EEPROM. Loaded Vendor ID, the vendor ID number loaded from serial EEPROM.
Default Val RW Type
From EEPROM From EEPROM R/O R/O
From EEPROM: Loaded from EEPROM
CR1 (offset = 04h), CSC - Configuration command and status
Bit # 31 Name
SPE
Descriptions
Status of Parity Error. 1: means that AN983B detected a parity error. This bit will be set in this condition, even if the parity error response (bit 6 of CR1) is disabled.
Default Val RW Type
0 R/W
30 29
SES SMA
Status of System Error. 1: means that AN983B asserted the system error pin. Status of Master Abort. 1: means that AN983B received a master abort and terminated a master transaction.
0 0
R/W R/W
28
STA
Status of Target Abort. 1: means that AN983B received a target abort and terminated a master transaction.
0
R/W
27 26, 25
--SDST
Reserved. Status of Device Select Timing. The timing of the assertion of 01 device select. 01: means a medium assertion of DEVSEL# R/O
24
SDPR
Status of Data Parity Report. 1: when three conditions are met: AN983B asserted parity error - PERR# or it detected parity error asserted by other device. AN983B is operating as a bus master. AN983B's parity error response bit (bit 6 of CR1) is enabled.
0
R/W
23
SFBB
Status of Fast Back-to-Back Always 1, since AN983B has the ability to accept fast back-to-back transactions.
1
R/O
22~21 20
--NC
Reserved. New Capabilities. This bit indicates that whether the AN983B Same as provides a list of extended capabilities, such as PCI power management. bit 19 of CSR18 RO
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
22
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
1: the AN983B provides the PCI management function 0: the AN983B doesn't provide New Capabilities.
19~ 9 8
--CSE
Reserved. Command of System Error Response 1: enable system error response. AN983B will assert SERR# When it find a parity error on the address phase. 0 R/W
7 6
--CPE
Reserved. Command of Parity Error Response 0: disable parity error response. AN983B will ignore any detected parity error and keep on its operating. Default value is 0. 1: enable parity error response. AN983B will assert system error (bit 13 of CSR5) when a parity error is detected. 0 R/W
5~ 3 2
--CMO
Reserved. Command of Master Operation Ability 0: disable the bus master ability. 1: enable the PCI bus master ability. Default value is 1 for normal operation. 0 R/W
1
CMSA
Command of Memory Space Access 0: disable the memory space access ability. 1: enable the memory space access ability.
0
R/W
0
CIOSA
Command of I/O Space Access 1: enable the I/O space access ability. 0: disable the I/O space access ability.
0
R/W
R/W: Read and Write able. RO: Read able only.
CR2 (offset = 08h), CC - Class Code and Revision Number
Bit # 31~24 23~16 15~ 8 7~4 3~0 Name
BCC SC --RN SN
Descriptions
Base Class Code. It means AN983B is network controller. Subclass Code. It means AN983B is a Fast Ethernet Controller. Reserved. Revision Number identifies the revision number of AN983B. revision.
Default Val RW Type
02h 00h RO RO
01h
RO RO
Step Number, identifies the AN983B steps within the current 01h
RO: Read Only.
CR3 (offset = 0ch), LT - Latency Timer
Bit # 31~16 15~ 8 Name
--LT
Descriptions
Reserved.
Default Val RW Type
R/W
Latency Timer. This value specifies the latency timer of the 0 AN983B in units of PCI bus clock. Once the AN983B asserts FRAME#, the latency timer starts to count. If the latency
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
23
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
timer expires and the AN983B still asserted FRAME#, then the AN983B will terminate the data transaction as soon as its GNT# is removed.
7~0
CLS
Cache Line Size. This value specifies the system cache line size in units of 32-bit double words (DW). The AN983B supports 8, 16, and 32 DW of cache line size. This value is used by the AN983B driver to program the cache alignment bits (bit 14 and 15 of CSR0). The cache alignment bits are used for cache oriented PCI commands; say memory-read-line, memory-read-multiple, and memory-write-and-invalidate.
0
R/W
CR4 (offset = 10h), IOBA - I/O Base Address
Bit # 31~ 8 7~1 0 Name
IOBA --IOSI
Descriptions
control and status register (CSR0~28) Reserved. I/O Space Indicator. 1: means that the configuration registers map into the I/O space.
Default Val RW Type
R/W
I/O Base Address. This value indicate the base address of PCI 0
1
RO
CR5 (offset = 14h), MBA - Memory Base Address
Bit # Name 31~ 10 MBA 9~1 0
--IOSI
Descriptions
Memory Base Address. This value indicate the base address of PCI control and status register (CSR0~28) Reserved. Memory Space Indicator. 1: means that the configuration registers map into the I/O space.
Default Val RW Type
0 R/W
0
RO
CR11 (offset = 2ch), SID - Subsystem ID.
Bit # 31~16 15~ 0 Name
SID SVID
Descriptions
on or hardware reset. power on or hardware reset.
Default Val RW Type
RO RO EEPROM EEPROM
Subsystem ID. This value is loaded from EEPROM after power From Subsystem Vendor ID. This value is loaded from EEPROM after From
CR12 (offset = 30h), BRBA - Boot ROM Base Address.
Bit # 31~17 Name
BRBA
Descriptions
Boot ROM Base Address. This value indicates the address mapping of boot ROM field. Besides, it also defines the boot ROM size. The value of bit 17~10 is set to 0 for AN983B supports up to 256KB of boot ROM.
Default Val RW Type
X: b31~18 0: b17~10 RO 0 RO R/W R/W
16 ~ 1
---
Reserved
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
24
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
R/W
0
BRE
Boot ROM Enable. The AN983B really enables its boot ROM access only if both the memory space access bit (bit 1 of CR1) and this bit are set to 1. 1: enable Boot ROM. (Combines with bit 1 of CR1)
0
R/W
This register should be initialized before accessing the boot ROM space. fffe0001)
(Write 32'hffffffff return 32'h
CR13 (offset = 34h), CP - Capabilities Pointer.
Bit # 31~8 7~0 Name
--CP
Descriptions
Reserved Capabilities Pointer.
Default Val RW Type
C0h RO
CR15 (offset = 3ch), CI - Configuration Interrupt
Bit # 31~24 Name
ML
Descriptions
Max_Lat register. This value indicates "how often" the This value is loaded from serial EEPROM after power on or hardware reset.
Default Val RW Type
From RO
AN983B needs to access to the PCI bus in the units of 250ns. EEPROM
23~16
MG
Min_Gnt register. This value indicates how long the AN983B transaction, in the units of 250ns. This value is loaded from serial EEPROM after power on or hardware reset.
From
RO
needs to retain the PCI bus ownership whenever it initiates a EEPROM
15~ 8
IP
Interrupt Pin. This value indicates which of the four interrupt 01h request pins that AN983B is connected. Always 01h: means the AN983B connects to INTA#
RO
7~0
IL
Interrupt Line. This value indicates which of the system interrupt request lines the INTA# of AN983B is routed to. The BIOS will fill this field when it initializes and configures the system. The AN983B driver can use this value to determine priority and vector information.
X
R/W
CR16 (offset = 40h), DS - Driver Space for special purpose.
Bit # 31~16 15~8 Name
--DS
Descriptions
Reserved Driver Space for special purpose. Since this area won't be cleared in the software reset. The AN983B driver can use this R/W area for special purpose.
Default Val RW Type
X R/W
7~0
---
Reserved
(offset = 80h), SIG - Signature of AN983B
Bit # 31~16 15~0 Name
DID VID
Descriptions
Device ID, the device ID number of AN983B. Vendor ID, the vendor ID number of ADM Technology Corp.
Default Val RW Type
0981h 1317h RO RO
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
25
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
CR48 (offset = c0h), PMR0, Power Management Register0.
Bit # 31~27 Name
PMES
Descriptions
PME_Support. The AN983B will assert PME# signal while in the D0, D1, D2, D3 power state. above states. The AN983B supports Wake-up from the
Default Val RW Type
11111b RO
26 25 24~22
D2S D1S AUXC
D2_Support. The AN983B supports D2 Power Management State. D1_Support. The AN983B supports D1 Power Management State.
1 1
RO RO RO
Aux Current. These three bits report the maximum 3.3 Vaux 010b current requirements for AN983B. If bit 31 of PMR0 is `1', the default value is 0101b, means AN983B need 100 mA to support remote wake-up in D3cold power state.
21
DSI
The Device Specific Initialization bit indicates whether special initialization of this function is required before the generic class device driver is able to use it. 0: indicates that the function does not require a device specific initialization sequence following transition to the D0 un-initialized state.
0
RO
20 19
--PMEC
Reserved. presence of the PCI clock for PME# operation. While "0" indicates the no PCI clock is required for the AN983B to generate PME#.
0
RO RO
PME Clock. When "1" indicates that the AN983B relies on the 0
18~16
VER
Version. The value of 010b indicates that the AN983B complies with Revision 1.1 of the PCI Power Management Interface Specification.
010b
RO
15~8 7~0
NIP CAPID
Next Item Pointer. This value is always 0h, indicates that there is no additional items in the Capabilities List. Capability Identifier. This value is always 01h, indicates the link list item as being PCI Power Management Registers.
00h 01h
RO RO
CR49 (offset = c4h), PMR1, Power Management Register 1.
Bit # 31~16 15 Name
--PMES
Descriptions
Reserved
Default Val RW Type
R/W*
PME_Status, This bit is set when the AN983B would normally 0 assert the PME# signal for wake-up event, this bit is independent of the state of the PME-En bit. Writing a "1" to this bit will clear it and cause the AN983B to stop asserting a PME# (if enabled). Writing a "0" has no effect.
14,13
DSCAL
Data_Scale, indicates the scaling factor to be used when
00b
RO
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
26
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
interpreting the value of the Data register. This field is required for any function that implements the Data register. Otherwise, it's optional. The AN983B doesn't support Data register and Data_Scale.
12~9
DSEL
Data_Select, This four-bit field is used to select which data is to be reported through the Data register and Data_Scale field. This field is required for any function that implements the Data register. The AN983B doesn't support Data_select.
0000b
R/W
8
PME_En
PME_En, "1" enables the AN983B to assert PME#. When "0" disables the PME# assertion. Magic packet default enable: When Csr18<18> and csr18<19> are set to 1, than the magic packet wake up event will be default enabled (csr13<9> be set) it doesn't matter the PME_En is set or not.
0
R/W
7~2 1,0
--PWRS
Reserved. current power state of the AN983B and to set the AN983B into a new power state. The definition of this field is given below. 00b - D0 01b - D1 10b - D2 11b - D3hot This field is auto cleared to D0 when power resumed.
000000b
RO R/W
PowerState, This two-bit field is used both to determine the 00b
R/W*: Read and Write clear
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
27
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
7.2. PCI CONTROL/STATUS REGISTERS
7.2.1.
PCI CONTROL/STATUS REGISTERS LIST
Index Name Descriptions
Offset from base address of CSR 00h 08h 10h 18h 20h 28h 30h 38h 40h 48h 50h 58h 60h 68h 70h 78h 80h 84h 88h 8ch 90h 94h 98h 9ch a0h a4h a8h ach b0h fch
CSR0 CSR1 CSR2 CSR3 CSR4 CSR5 CSR6 CSR7 CSR8 CSR9 CSR10 CSR11 CSR12 CSR13 CSR14 CSR15 CSR16 CSR17 CSR18 CSR19 CSR20 CSR21 CSR22 CSR23 CSR24 CSR25 CSR26 CSR27 CSR28
PAR TDR RDR RDB TDB SR NAR IER LPC SPR --TMR ------WTMR ACSR5 ACSR7 CR PCIC PMCSR WTDP WRDP TXBR FROM PAR0 PAR1 MAR0 MAR1 OPR
PCI access register Transmit demand register Receive demand register Receive descriptor base address Transmit descriptor base address Status register Network access register Interrupt enable register Lost packet counter Serial port register Reserved Timer Reserved Reserved Reserved Watchdog timer Status register 2 Interrupt enable register 2 Command register PCI bus performance counter Power Management Command and Status Current transmit descriptor point Current receive descriptor point Transmit burst counter/time-out register Flash (boot) ROM port Physical address register 0 Physical address register 1 Multicast address hash table register 0 Multicast address hash table register 1 Operation Mode register
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
28
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
7.2.2. CONTROL/STATUS REGISTER DESCRIPTION
CSR0 (offset = 00h), PAR - PCI Access Register
Bit # 31~25 24 Name
--MWIE
Descriptions
Reserved Memory Write and Invalidate Enable. 1: enable AN983B to generate memory write invalidate command. AN983B will generate this command while writing full cache lines. 0: disable AN983B to generate memory write invalidate command and use memory write commands instead.
Default Val RW Type
0 R/W*
23
MRLE
Memory Read Line Enable. 1: enable AN983B to generate memory read line command, while read access instruction reach the cache line boundary. If the read access instruction doesn't reach the cache line boundary then AN983B uses the memory read command instead.
0
R/W*
22 21
--MRME
Reserved Memory Read Multiple Enable. 1: enable AN983B to generate memory read multiple commands while reading full cache line. If the memory is not cache aligned, the AN983B uses memory read command instead. 0 R/W*
20~19 18,17
--TAP
Reserved Transmit auto-polling in transmit suspended state, 00: disable auto-polling (default) 01: polling own-bit every 200 us 10: polling own-bit every 800 us 11: polling own-bit every 1600 us 00 R/W*
16 15, 14
--CAL
Reserved Cache alignment, address boundary for data burst, set after 00 reset 00: reserved (default) 01: 8 DW boundary alignment 10: 16 DW boundary alignment 11: 32 DW boundary alignment R/W*
13 ~ 8
PBL
Programmable Burst Length. This value defines the maximum 010000 number of DW to be transferred in one DMA transaction. Value: 0 (unlimited), 1, 2, 4, 8, 16(default), 32
R/W*
7
BLE
Big or Little Endian selection. 0: little endian (e.g. INTEL) 1: big endian (only for data buffer)
0
R/W*
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
29
AN983B
6~2 1
DSL BAR
PCI/miPCI Fast Ethernet Controller with integrated PHY
Descriptor Skip Length. Defines the gap between two descriptions in the units of DW. Bus arbitration 0: receive higher priority 1: transmit higher priority
0 0
R/W* R/W*
0
SWR
Software reset 1: reset all internal hardware, except configuration registers. This signal will be cleared by AN983B itself after it completed the reset process.
0
R/W*
R/W* = before writing the transmit and receive operations should be stopped.
CSR1 (offset = 08h), TDR - Transmit demand register
Bit # 31~ 0 Name TPDM Descriptions Transmit poll demand When written any value in suspended state, trigger read-tx-descriptor process and check the own-bit, if own-bit = 1, then start transmit process Default Val RW Type ffffffffh R/W*
R/W* = before writing the transmit process should be in the suspended state.
CSR2 (offset = 10h), RDR - Receive demand register
Bit # 31 ~ 0 Name RPDM Descriptions Receive poll demand When written any value in suspended state, trigger the
read-rx-descriptor process and check own-bit, if own-bit =
Default Val RW Type ffffffffh R/W*
1, then start move data to buffer from FIFO
R/W* = before writing the receive process should be in the suspended state.
CSR3 (offset = 18h), RDB - Receive descriptor base address
Bit # 31~ 2 1, 0 Name SAR RBND Descriptions Start address of receive descriptor Must be 00, DW boundary Default Val RW Type xxxxxxx R/W* 00 RO
R/W* = before writing the receive process should be stopped.
CSR4 (offset = 20h), TDB - Transmit descriptor base address Bit # Name Descriptions 31~ 2 SAT Start address of transmit descriptor 1, 0 TBND Must be 00, DW boundary
R/W* = before writing the transmit process should be stopped.
Default Val RW Type xxxxxx R/W* 00 RO
CSR5 (offset = 28h), SR - Status register
Bit # Name 31~ 26 ---25~ 23 BET Descriptions
Reserved Bus Error Type. This field is valid only when bit 13 of CSR5 (fatal bus error) is set. There is no interrupt generated by this field. 000 RO
Default Val RW Type
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
30
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
000: parity error, 001: master abort, 010: target abort 011, 1xx: reserved
22~ 20 TS
Transmit State. Report the current transmission state only, no interrupt will be generated. 000: stop 001: read descriptor 010: transmitting 011: FIFO fill, read the data from memory and put into FIFO 100: reserved 101: reserved 110: suspended, unavailable transmit descriptor or FIFO overflow 111: write descriptor
000
RO
19~17
RS
Receive State. Report current receive state only, no interrupt will be generated. 000: stop 001: read descriptor 010: check this packet and pre-fetch next descriptor 011: wait for receiving data 100: suspended 101: write descriptor 110: flush the current FIFO 111: FIFO drain, move data from receiving FIFO into memory
000
RO
16
NISS
Normal Interrupt Status Summary. It's set if any of below bits of CSR5 asserted. (Combines with bit 16 of ACSR5) bit0, transmit completed interrupt bit2, transmit descriptor unavailable bit6, receive descriptor interrupt
0
RO/LH*
15
AISS
Abnormal Interrupt Status Summary. It's set if any of below bits of CSR5 asserted. (Combines with bit 15 of ACSR5) bit1, transmit process stopped bit3, transmit jabber timer time-out bit5, transmit under-flow bit7, receive descriptor unavailable bit8, receive processor stopped bit9, receive watchdog time-out bit11, general purpose timer time-out bit13, fatal bus error
0
RO/LH*
14 13
---FBE
Reserved Fatal Bus Error. 1: while any of parity error, master abort, or target abort is occurred (see bits 25~23 of CSR5). AN983B will disable all bus access. The way to recover parity error is by setting software reset. 0 RO/LH*
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
31
AN983B
12 11 10 9 8 7
--GPTT --RWT RPS RDU Reserved
PCI/miPCI Fast Ethernet Controller with integrated PHY
General Purpose Timer Time-out, base on CSR11 timer register Reserved
0
RO/LH*
Receive Watchdog Time-out, based on CSR15 watchdog timer 0 register Receive Process Stopped, receive state = stop Receive Descriptor Unavailable 1: while the next receive descriptor can't be applied by AN983B. The receive process is suspended in this situation. To restart the receive process, the ownership bit of next receive descriptor should be set to AN983B and a receive poll demand command should be issued (or a new recognized frame is received, if the receive poll demand is not issued). 0 0
RO/LH* RO/LH* RO/LH*
6 5
RCI TUF
Receive Completed Interrupt 1: while a frame reception is completed. Transmit Under-Flow 1: while the transmit FIFO had an under-flow condition happened during transmitting. The transmit process will enter the suspended state and report the under-flow error on bit1 of TDES0.
0 0
RO/LH* RO/LH*
4 3
--TJT
Reserved Transmit Jabber Timer Time-out 1: while the transmit jabber timer expired. The transmit processor will enter the stop state and the transmit jabber time-out flag of bit 14 of TDES0 will be asserted. 0 RO/LH*
2
TDU
Transmit Descriptor Unavailable 1: while the next transmit descriptor can't be applied by AN983B. The transmission process is suspended in this situation. To restart the transmission process, the ownership bit of next transmit descriptor should be set to AN983B and if the transmit automatic polling is not enabled then a transmit poll demand command should be issued.
0
RO/LH*
1 0
TPS TCI
Transmit Process Stopped. 1: while transmit state = stop Transmit Completed Interrupt. 1: means a frame transmission is completed while bit 31 of TDES1 is asserted in the first transmit descriptor of the frame.
0 0
RO/LH* RO/LH*
LH = High Latching and cleared by writing 1.
CSR6 (offset = 30h), NAR - Network access register
Bit # Name Descriptions Default Val RW Type
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
32
AN983B
31~22 21 --SF Reserved
PCI/miPCI Fast Ethernet Controller with integrated PHY
20 19
--SQE
Store and forward for transmit 0: disable 1: enable, ignore the transmit threshold setting Reserved SQE Disable 0: enable SQE function for 10BASE-T operation. The AN983B provides SQE test function for 10BASE-T half duplex operation. 1: disable SQE function. Reserved Transmit threshold control 00: 128-byte (100Mbps), 01: 256-byte (100Mbps), 10: 512-byte (100Mbps), 00: 1024-byte (100Mbps), Stop transmit 0: stop (default) 1: start Force collision mode
0: disable
0
R/W*
1
R/W*
18~16 ----15~14 TR
00 72-byte (10Mbps) 96-byte (10Mbps) 128-byte (10Mbps) 160-byte (10Mbps) 0
R/W*
13
ST
R/W
12
FC
0
R/W**
11, 10 OM
9, 8 7 6
--MM PR
1: generate collision when transmit (for test in loop-back mode) Operating Mode 00: normal 01: MAC loop-back 10,11: reserved Reserved Multicast Mode 1: receive all multicast packets Promiscuous Mode 1: receive any good packet. 0: receive only the right destination address packets Stop Back-off Counter 1: back-off counter stop when carrier is active, and
resume when carrier drop.
00
R/W**
0 1
R/W*** R/W***
5
SBC
0
R/W**
4 3
--PB
0: back-off counter is not effected by carrier Reserved Pass Bad packet 0 1: receives any packets, if pass address filter, including runt packets, CRC error, truncated packets... For receiving all bad packets, the bit 6 of CSR6 should be set to 1. R/W***
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
33
AN983B
0: filters all bad packets Reserved
PCI/miPCI Fast Ethernet Controller with integrated PHY
2 1
--SR
0
---
Start/Stop Receive 0: receive processor will enter stop state after the current reception frame completed. This value is effective only when the receive processor is in the running or suspending state. Notice: In "Stop Receive" state, the PAUSE packet and Remote Wake Up packet won't be affected and can be received if the corresponding function is enabled. 1: receive processor will enter running state. Reserved
0
R/W
W* = only write when the transmit processor stopped. W** = only write when the transmit and receive processor both stopped. W*** = only write when the receive processor stopped.
CSR7 (offset = 38h), IER - Interrupt Enable Register
Bit # 31~17 16 15 Name --NIE AIE Descriptions (Refer to CSR5) Reserved Normal Interrupt Enable
1: enable all the normal interrupt bits (see bit16 of CSR5)
Defau Val RW Type lt 0 R/W R/W
14 13
--FBEIE
Abnormal Interrupt Enable 0 1: enable all the abnormal interrupt bits (see bit 15 of CSR5) Reserved Fatal Bus Error Interrupt Enable 1: combine this bit and bit 15 of CSR7 to enable fatal bus error interrupt General Purpose Timer Interrupt Enable 1: combine this bit and bit 15 of CSR7 to enable general-purpose timer expired interrupt. Receive Watchdog Time-out Interrupt Enable 1: combine this bit and bit 15 of CSR7 to enable receive watchdog time-out interrupt. Receive Stopped Interrupt Enable 1: combine this bit and bit 15 of CSR7 to enable receive stopped interrupt. Receive Descriptor Unavailable Interrupt Enable 1: combine this bit and bit 15 of CSR7 to enable receive descriptor unavailable interrupt. Receive Completed Interrupt Enable 0
R/W
12 11 GPTIE 0 R/W
10 9 RWTIE 0 R/W
8
RSIE
0
R/W
7
RUIE
0
R/W
6
RCIE
0
R/W
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
34
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
5
TUIE
4 3
--TJTTIE
1: combine this bit and bit 16 of CSR7 to enable receive completed interrupt. Transmit Under-flow Interrupt Enable 1: combine this bit and bit 15 of CSR7 to enable transmit under-flow interrupt. Reserved Transmit Jabber Timer Time-out Interrupt Enable 1: combine this bit and bit 15 of CSR7 to enable transmit jabber timer time-out interrupt. Transmit Descriptor Unavailable Interrupt Enable 1: combine this bit and bit 16 of CSR7 to enable transmit descriptor unavailable interrupt. Transmit Processor Stopped Interrupt Enable 1: combine this bit and bit 15 of CSR7 to enable transmit processor stopped interrupt. Transmit Completed Interrupt Enable 1: combine this bit and bit 16 of CSR7 to enable transmit completed interrupt.
0
R/W
0
R/W
2
TDUIE
0
R/W
1
TPSIE
0
R/W
0
TCIE
0
R/W
CSR8 (offset = 40h), LPC - Lost packet counter
Bit # 31~17 16 Name --LPCO Descriptions Default Val RW Type Reserved Lost Packet Counter Overflow 0 RO/LH 1: while lost packet counter overflowed. Cleared after read Lost Packet Counter 0 RO/LH Increment the counter while packet discarded since there was no host receives descriptors available. Cleared after read
15~0
LPC
CSR9 (offset = 48h), SPR - Serial port register
Bit # 31~20 19 18 Name --MDI MMC Descriptions Reserved MII Management Data Input Specified read data from the external PHY MII Management Control 0: Write operation to the external PHY 1: Read operation from the external PHY MII Management Data Output Specified Write Data to the external PHY MII Management Clock 1: MII Management Clock is a output reference clock to the external PHY Default Val RW Type 0 1 R/W R/W
17 16
MDO MDC
0 0
R/W R/W
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
35
AN983B
15 14 --SRC
PCI/miPCI Fast Ethernet Controller with integrated PHY
13
SWC
12 11
--SRS
10~4 3
--SDO
2
SDI
1
SCLK
0
SCS
Reserved Serial EEPROM Read Control Set together with CSR9 bit11 to enable read operation from EEPROM Serial EEPROM Write Control Set together with CSR9 bit11 to enable write operation to EEPROM Reserved Serial EEPROM Select Set together with CSR9 bit14 or 13 to enable EEPROM access Reserved Serial EEPROM data out This bit serially shifts data from the EEPROM to the AN983B. Serial EEPROM data in This bit serially shifts data from the AN983B to the EEPROM. Serial EEPROM clock High/Low this bit to provide the clock signal for EEPROM. Serial EEPROM chip select 1: selects the serial EEPROM chip.
0
R/W
0
R/W
0
R/W
1
RO
1
R/W
1
R/W
0
R/W
CSR11 (offset = 58h), TMR -General-purpose Timer
Bit # 31~17 16 Name --COM Descriptions Reserved Continuous Operation Mode 1: sets the general-purpose timer in continuous operating mode. General-purpose Timer Value Sets the counter value. This is a countdown counter with the cycle time of 204us. Default Val RW Type 0 R/W
15~0
GTV
0
R/W
CSR13 (offset = 68h), WCSR -Wake-up Control/Status Register
Bit # 31 30 Name
--CRCT
Descriptions
Reserved CRC-16 Type 0: Initial contents = 0000h 1: Initial contents = FFFFh
Default Val RW Type
0 R/W
29 28 27
WP1E WP2E WP3E
Wake-up Pattern One Matched Enable. Wake-up Pattern Two Matched Enable. Wake-up Pattern Three Matched Enable.
0 0 0
R/W R/W R/W
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
36
AN983B
26 25 24-18 17
WP4E WP5E --LinkOFF
PCI/miPCI Fast Ethernet Controller with integrated PHY
Wake-up Pattern Four Matched Enable. Wake-up Pattern Five Matched Enable. Reserved Link Off Detect Enable. The AN983B will set the LSC bit of CSR13 after it has detected that link status is from ON to OFF.
0 0 0
R/W R/W R/W
16
LinkON
Link On Detect Enable. The AN983B will set the LSC bit of CSR13 after it has detected that link status is from OFF to ON.
0
R/W
15-11 10
--WFRE
Reserved Wake-up Frame Received Enable. The AN983B will include the "Wake-up Frame Received" event into wake-up events. If this bit is set, AN983B will assert PMES bit of PMR1 after AN983B has received a matched wake-up frame.
00001 0 R/W
9
MPRE
Magic Packet Received Enable. The AN983B will include the 0 "Magic Packet Received" event into wake-up events. If this bit is set, AN983B will assert PMES bit of PMR1 after AN983B has received a Magic packet.
R/W
8
LSCE
Link Status Changed Enable. The AN983B will include the "Link Status Changed" event into wake-up events. If this bit is set, AN983B will assert PMES bit of PMR1 after AN983B has detected a link status changed event.
0
R/W
7-3 2
--WFR
Reserved Wake-up Frame Received, 1: Indicates AN983B has received a wake-up frame. cleared by write 1 or upon power-up reset. It is not affected by a hardware or software reset. It is X R/W1C*
1
MPR
Magic Packet Received, 1: Indicates AN983B has received a magic packet. affected by a hardware or software reset. It is cleared by write 1 or upon power-up reset. It is not
X
R/W1C*
0
LSC
Link Status Changed, 1: Indicates AN983B has detected a link status change event. It is cleared by write 1 or upon power-up reset. It is not affected by a hardware or software reset.
X
R/W1C*
R/W1C*, Read only and Write one cleared.
CSR14 (offset = 70h), WPDR -Wake-up Pattern Data Register
All six wake-up patterns filtering information are programmed through WPDR register. The filtering information is as follows,
Offset 0000h 0004h
31
16 15
Wake-up pattern 1 mask bits 31:0 Wake-up pattern 1 mask bits 63:32
8
7
0
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
37
AN983B
0008h 000ch 0010h 0014h 0018h 001ch 0020h 0024h 0028h 002ch 0030h 0034h 0038h 003ch 0040h 0044h 0048h 004ch 0050h 0054h 0058h 005ch 0060h
1. 2.
PCI/miPCI Fast Ethernet Controller with integrated PHY
Wake-up pattern 1 mask bits 95:64 Wake-up pattern 1 mask bits 127:96 CRC16 of pattern 1 Reserved Wake-up pattern 2 mask bits 31:0 Wake-up pattern 2 mask bits 63:32 Wake-up pattern 2 mask bits 95:64 Wake-up pattern 2 mask bits 127:96 CRC16 of pattern 2 Reserved Wake-up pattern 3 mask bits 31:0 Wake-up pattern 3 mask bits 63:32 Wake-up pattern 3 mask bits 95:64 Wake-up pattern 3 mask bits 127:96 CRC16 of pattern 3 Reserved Wake-up pattern 4 mask bits 31:0 Wake-up pattern 4 mask bits 63:32 Wake-up pattern 4 mask bits 95:64 Wake-up pattern 4 mask bits 127:96 CRC16 of pattern 4 Reserved Wake-up pattern 5 mask bits 31:0 Wake-up pattern 5 mask bits 63:32 Wake-up pattern 5 mask bits 95:64 Wake-up pattern 5 mask bits 127:96 CRC16 of pattern 5 Reserved Wake-up pattern 5 offset Wake-up pattern 4 offset Wake-up pattern 3 offset Wake-up pattern 2 offset Wake-up pattern 1 offset
Offset value is from 0-255 (8-bit width). To load the whole wake-up frame-filtering information, consecutive 25 long words write operation to CSR14 should be done.
CSR15 (offset = 78h), WTMR - Watchdog timer
Bit # 31~29 28 MRXCK Name Descri tions p Reserved MII Rx clock reverse 1: reverse (for NS HomePHY 1M only) 0: NOT reverse Reserved Receive Watchdog Release, the time of release 0 from EEPROM R Defau Val lt RW Type
27~6 5 RWR
R 0 R/W
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
38
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
watchdog timer from last carrier deserted.
0: 24 bit-time
4
RWD
1: 48 bit-time Receive Watchdog Disable 0: If the receiving packet`s length is longer than 2560
bytes, the watchdog timer will be expired.
0
R/W
3 2
--JCLK
1: disable the receive watchdog. Reserved Jabber clock 0 0: cut off transmission after 2.6 ms (100Mbps) or 26 ms (10Mbps).
1: cut off transmission after 2560 byte-time.
R/W
1
NJ
Non-Jabber 0: if jabber expired, re-enable transmit function after
42 ms (100Mbps) or 420ms (10Mbps)
0
R/W
0
JBD
1: immediately re-enable the transmit function after jabber expired Jabber disable 1: disable transmit jabber function
0
R/W
CSR16 (offset = 80h), ACSR5 - Assistant CSR5 (Status register 2)
Bit # 31 Name
TEIS
Descriptions
Transmit Early Interrupt status Transmit early interrupt status is set to 1 when Transmit early interrupt function is enabled (set bit 31 of CSR17 = 1) and the transmitted packet is moved completed from descriptors to TX-FIFO buffer. This bit is cleared by written with 1.
Default Val
0
RW Type
RO/LH*
30
REIS
Receive Early Interrupt Status. Receive early interrupt status is set to 1 when Receive early interrupt function is enabled (set bit 30 of CSR17 = 1) and the received packet is fill up its first receive descriptor. This bit is cleared by written with 1.
0
RO/LH*
29 28 27 26
LCS TDIS --PFR
Status of Link status change Transmit Deferred Interrupt Status. Reserved PAUSE Frame Received Interrupt Status 1: indicates a PAUSE frame received when the PAUSE function is enabled.
0 0 0
RO/LH* RO/LH* RO/LH*
25~17 16
--ANISS
Reserved Added normal interrupt status summary. 1: any of the added normal interrupts happened. 0 RO/LH*
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
39
AN983B
15 14~0
AAISS
PCI/miPCI Fast Ethernet Controller with integrated PHY
Added Abnormal Interrupt Status Summary. 1: any of added abnormal interrupt happened. These bits are the same as the status register of CSR5. You can access those status bits through either CSR5 or CSR16.
0
RO/LH* RO/LH*
LH* = High Latching and cleared by writing 1.
CSR17 (offset = 84h), ACSR7- Assistant CSR7 (Interrupt enable register 2)
Bit # 31 30 29 28 27 26 25~17 16 Name
TEIE REIE LCIE TDIE --PFRIE --ANISE
Descriptions
Transmit Early Interrupt Enable Receive Early Interrupt Enable Link Status Change Interrupt Enable Transmit Deferred Interrupt Enable Reserved PAUSE Frame Received Interrupt Enable Reserved Added Normal Interrupt Summary Enable. 1: adds the interrupts of bit 30 and 31 of ACSR7 to the normal interrupt summary (bit 16 of CSR5).
Default Val RW Type
0 0 0 0 0 0 R/W R/W R/W R/W R/W R/W
15
AAIE
Added Abnormal Interrupt Summary Enable. 1: adds the interrupt of bit 26, 28 and 29 of ACSR7 to the abnormal interrupt summary.
0
R/W
14~0
These bits are the same as the interrupt enable register of CSR7. You can access those interrupt enable bits through either CSR7 or CSR16.
R/W
CSR18 (offset = 88h), CR - Command Register, bit31 to bit16
Automatically recall from EEPROM
Bit # 31
Name
D3CS
Descriptions
D3cold support, mapped to CR48<31>
Default Val
1 From EEPROM
RW Type
R/W
30-28
AUXCL
Aux Current. These three bits report the maximum 3.3 Vaux 010b current requirements for AN983B. If bit 31 of PMR0 is `1', the From default value is 0101b, means AN983B need 100 mA to support remote wake-up in D3cold power state. EEPROM 0 from EEPROM
RO
27
PMEP
Actively type select 1: create a negative 50ms pulse 0: create a positive 50ms pulse This bit is only active when PMEP enable CSR18 bit 26
R/W
26
PMEPEN
PMEP pin enable 1: enable 0: disable (this pin will be input, to compatible with AN983 circuit)
0 from EEPROM
R/W
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
40
AN983B
25 24
PCI/miPCI Fast Ethernet Controller with integrated PHY
PWRS_clr 1: PCI_reset rising will automatically reset CR49/ PWRS[1:0] 0 from to 00h. Pmes_stic 1: pmez sticky: While pmez signal is asserted by wake up ky event, it cannot be auto de-asserted. The software should clear CR49<15> PMES bit to de-assert the pmez signal. 0: pmez auto de-asserted: While pmez signal is asserted by wake up event, it will be de-asserted by power up automatically. EERROM 0 From EEPROM
R/W R/W
23
4_3LED
If this bit is reset, 3 LED mode is selected, the LEDs definition is: 100/10 speed Link/Activity Full Duplex/Collision If this bit is set, 4 LED mode is selected, the LEDs definition is: 100 Link 10 Link Activity Full Duplex/Collision
0 From EEPROM
R/W
22, 21
RFS
Receive FIFO size control 11: 1K 10: 2K 01,00: reserved
10 From EEPROM 0 From EEPROM
R/W
20 19
CRD PM
Clock Run (clk-run pin) disable 1: disables the function of clock run supports to PCI.
R/W RO
Power Management, enables the AN983B whether to activate 1 the Power Management abilities. When this bit is set into "0" From EEPROM the AN983B will set the Cap_Ptr register to zero, indicating no PCI compliant power management capabilities. The value of this bit will be mapped to NC-bit 20 of CR1. In PCI Power Management mode, the Wake-up events include "Wake-up Frame Received", "Magic Packet Received" and "Link Status Changed" depends on the CSR13 settings
18
APM
APM mode, this bit is effective when PM (csr18 [19]) =1 1: Magic Packet wake-up event default enable 0: Magic Packet wake-up event default disable
1 From EEPROM 0 From EEPROM
R/W
17 16~8 7
LWS ---D3_APM
Should be 0 Reserved D3_cold APM_mode_en for PC99 certification
R/W
0
R/W
It doesn't matter the status of PEM_EN, the pmez signal can be asserted by programming this bit 1: Assert pmez signal
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
41
AN983B
0: de-assert pmez signal
PCI/miPCI Fast Ethernet Controller with integrated PHY
6
RWP
Reset Wake-up Pattern Data Register Pointer 0: Normal 1: Reset
0
R/W
5
PAUSE
PAUSE function control to disable or enable the PAUSE function for flow control. The default value of PAUSE is decided by the result of Auto-Negotiation. Driver can force to enable or disable it after the Auto-Negotiation completed. 0: PAUSE function is disabled. 1: PAUSE function is enabled
0
R/W
4
RTE
Receive Threshold Enable. 1: the receive FIFO threshold is enabled. 0: disable the receive FIFO threshold selection in bit 3~2 of this register, the receive threshold is set to 64-byte.
0
R/W
3~2
DRT
Drain Receive Threshold 00: 32 bytes (8 DW) 01: 64 bytes (16 DW) 10: store-and -forward 11: reserved
01
R/W
1 0
SINT ATUR
Software interrupt. 1: enable automatically transmit-underrun recovery.
0 0
R/W R/W
CSR19 (offset = 8ch) - PCIC, PCI bus performance counter
Bit # 31~16 Name
CLKCNT
Descriptions
The number of PCI clock from read request asserted to access completed. This PCI clock number is accumulated all the read command cycles from last CSR19 read to current CSR19 read.
Default Val RW Type
0 RO*
15~8 7~0
--DWCNT
Reserved The number of double word accessed by the last bus master. 0 This double word number is accumulated all the bus master data transactions from last CSR19 read to current CSR19 read. RO*
RO* = Read only and cleared by reading.
CSR20 (offset = 90h) - PMCSR, Power Management Command and Status
(The same register value mapping to CR49-PMR1.)
Bit # 31~16 15
Name
--PMES
Descriptions
Reserved
Default Val RW Type
RO
PME_Status, This bit is set when the AN983B would normally 0 assert the PME# signal for wakeup event, this bit is independent of the state of the PME-En bit. Writing a "1" to this bit will clear it and cause the AN983B to stop asserting a PME#(if enabled). Writing a "0" has no
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
42
AN983B
effect.
PCI/miPCI Fast Ethernet Controller with integrated PHY
Since the AN983B doesn't supports PME# from D3cold, this bit is defaulted to "0".
14,13
DSCAL
Data_Scale, indicates the scaling factor to be used when interpreting the value of the Data register. This field is required for any function that implements the Data register. Otherwise, it's optional. The AN983B doesn't support Data register and Data_Scale.
00b
RO
12~9
DSEL
Data_Select, This four bit field is used to select which data is 0000b to be reported through the Data register and Data_Scale field. This field is required for any function that implements the Data register. The AN983B doesn't support Data_select.
RO
8
PME_En
PME_En, "1" enables the AN983B to assert PME#. When "0" disables the PME# assertion. This bit defaults to "0" if the function does not support PME# generation from D3cold.
0
RO
7~2 1,0
--PWRS
Reserved. current power state of the AN983B and to set the AN983B into a new power state. The definition of this field is given below. 00b - D0 01b - D1 10b - D2 11b - D3hot If software attempts to write an unsupported, optional state to this field, the write operation must complete normally on the bus, however the data is discarded a no state change occurs.
000000b
RO RO
PowerState, This two bit field is used both to determine the 00b
CSR21 (offset = 94h) - WTDP, The current working transmit descriptor pointer
Bit # 31~0 Name
WTDP
Descriptions
The current working transmit descriptor pointer for driver's double-checking or other special purpose.
Default Val RW Type
XXXX RO
CSR22 (offset = 98h) - WRDP, The current working receive descriptor pointer
Bit # 31~0 Name
WRDP
Descriptions
The current working receive descriptor pointer for driver's double-checking or other special purpose.
Default Val RW Type
XXXX RO
CSR23 (offset = 9ch) - TXBR, transmit burst count / time-out
Bit # 31~21 Name
---
Descriptions
Reserved
Default Val RW Type
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
43
AN983B
20~16
TBCNT Transmit Burst Count
PCI/miPCI Fast Ethernet Controller with integrated PHY
0
R/W
After this number of consecutive successful transmit, transmit completed interrupt will be generated. Continuously do this function if no reset.
11~0
TTO
Transmit Time-Out = (deferred time + back-off time). When the TDIE (bit28 of ACSR7) is set, the timer is decreased in unit of 2.56us(100M) or 25.6us(10M). If the timer expires before another packet transmit begin, then the TDIE interrupt will be generated.
0
R/W
CSR24 (offset = a0h) - FROM, Flash ROM (also the boot ROM) port
Bit # 31 Name Descriptions
CSR18 is set). When 4 LED mode selected, and this bit is set, then pin 105 is defined as brA16, else it is defined as LED pin - fd/col.
Default Val RW Type
R/W
Bra16_on This bit is only effective while 4 LED mode selected (bit 23 of 1
30~28 27 26 25~8 7~0
--REN WEN ADDR DATA
Reserved Read enable, clear if read data is ready in DATA, bit7-0 of FROM. Write enable, cleared if write completed Flash ROM address Read/Write data of flash ROM 0 0 0 R/W R/W R/W 0 R/W
CSR25 (offset = a4h) - PAR0, physical address register 0
Automatically recall from EEPROM
Bit # 31~24 23~16 15~8 7~0
Name
PAB3 PAB2 PAB1 PAB0
Descriptions
Physical address byte 3 Physical address byte 2 Physical address byte 1 Physical address byte 0
Default Val RW Type
From EEPROM From EEPROM From EEPROM From EEPROM R/W R/W R/W R/W
CSR26 (offset = a8h) - PAR1, physical address register 1
Automatically recall from EEPROM
Bit # 31~24 23~16 15~8 7~0
Name
----PAB5 PAB4
Descriptions
Reserved Reserved Physical address byte 5 Physical address byte 4
Default Val RW Type
From EEPROM From EEPROM
R/W R/W
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
44
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
For example, physical address = 00-00-e8-11-22-33 PAR0= 11 e8 00 00 PAR1= xx xx 33 22 PAR0 and PAR1 are readable, but can be written only if the receive state is in stopped (CSR5 bit19-17=000).
CSR27 (offset = ach) - MAR0, multicast address register 0
Bit # 31~24 23~16 15~8 7~0 Name
MAB3 MAB2 MAB1 MAB0
Descriptions
Multicast address byte 3 (hash table 31:24) Multicast address byte 2 (hash table 23:16) Multicast address byte 1 (hash table 15:8) Multicast address byte 0 (hash table 7:0)
Default Val RW Type
0 0 0 0 R/W R/W R/W R/W
CSR28 (offset = b0h) - MAR1, multicast address register 1
Bit # 31~24 23~16 15~8 7~0 Name
MAB7 MAB6 MAB5 MAB4
Descriptions
Multicast address byte 7 (hash table 63:56) Multicast address byte 6 (hash table 55:48) Multicast address byte 5 (hash table 47:40) Multicast address byte 4 (hash table 39:32)
Default Val RW Type
0 0 0 0 R/W R/W R/W R/W
MAR0 and MAR1 are readable, but can be written only if the receive state is in stopped (CSR5 bit19-17=000).
Multicast 64 Algorithm: AN983B uses CRC [5:0] to hit one of the 64 entries in UMAR1 [31:0] and MAR0[31:0] by generated CRC32 from Ethernet DA (destination address). The most significant bit CRC [5] choose the upper or lower double word, (MAR1 or MAR0), the lower 5 bit present for the corresponding bit inside the double word. Example 1: If CRC [5] =1'b0 --> hit MAR0 CRC [4:0] = 5'b00010 --> hit MAR0 [2] Example 2: CRC [5] = 1'b1 --> hit MAR1 CRC [4:0] = 5'b00100--> hit MAR1 [4] CSR_29 (offset = b4h) - UAR0, unicast address register 0 Bit # 31~24 23~16 15~8 7~0 Name UAB3 UAB2 UAB1 UAB0 Descriptions Unicast address byte 3 (hash table 31:24) Unicast address byte 2 (hash table 23:16) Unicast address byte 1 (hash table 15:8) Unicast address byte 0 (hash table 7:0) Default Val RW Type 0 0 0 0 R/W R/W R/W R/W
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
45
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
CSR_30(offset = b8h) - UAR1, unicast address register 1 Bit # 31~24 23~16 15~8 7~0 Name UAB7 UAB6 UAB5 UAB4 Descriptions Unicast address byte 7 (hash table 63:56) Unicast address byte 6 (hash table 55:48) Unicast address byte 5 (hash table 47:40) Unicast address byte 4 (hash table 39:32) Default Val RW Type 0 0 0 0 R/W R/W R/W R/W
Unicast64 Algorithm: The algorithm is the with multicast64.
Operation Mode Register (offset 0FCh)
Bit # 31 Name
SPEED
Descriptions
Network Speed Status 1: 100M 0: 10M
Default Val RW Type
0 RO
30
FD
Full/Half Duplex Status 1: Full duplex 0: Half duplex
0
RO
29
LINK
Network Link Status 1: Link On 2: Link Off
0
RO
28~27 26
Reserved EERLOD Write 1 to this bit will cause AN983B to reload data from EEPROM. After reload completed, this bit will be cleared automatically. 0 R/W
25~3 2~0
Reserved OpMode These three bits are used to configure AN983B's operation mode: 111b: Single Chip mode (Normal operation) At this mode, AN983B is configured as single chip to provide PCI to Ethernet controller. 100b: MAC-only mode The AN983B is configured as a MAC only controller, it provide standard MII interface to link to the external PHY. The MII interface pins are multiplexed with BootROM interface. Others: For diagnostic purpose. 111b R/W
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
46
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
7.3. PHY REGISTERS (ACCESSED BY CSR9 MDI/MMC/MDO/MDC)
7.3.1. TRANSCEIVER REGISTERS DESCRIPTIONS
Register 0 (MII Control)
BIT 15 14 13 12 11 10 9 8 7 6:0 NAME Reset Loopback Speed selection Autonegotiation enable Power down Isolate Restart autonegotiation Duplex mode Collision test Reserved DESCRIPTION 1 = PHY Reset 0 = normal operation 1 = enable loopback 0 = disable loopback 1 = 100Mbps/s 0 = 10 Mb/s 1 = enable autoneg 0 = disable autoneg 1 = Power Down 0 = normal operation 1 = isolate PHY from MII 0 = normal operation 1 = Restart Autoneg 1 = full, 0 = half Not implemented R/W, SC R/W RO RO 0 Pin - see note 0 - see note 0000000 R/W 0 R/W 0 R/W Pin - see note R/W Pin - see note R/W 0 Read/Write R/W, SC DEFAULT 0
SC Reset
Self Clearing Reset this port only. This will cause the following: 1. Restart the autonegotiation process. 2. Reset the registers to their default values. Note that this does not affect registers 20, 22, 30 or 31. These registers are not reset by this bit to allow test configurations to be written and then not affected by resetting the port. Note: No reset is performed to analogue sections of the port. There is also no physical reset to any internal clock synthesisers or the local clock recovery oscillator which will continue to run throughout the reset period. However since the port is restarted and autoneg re-run the process of locking the frequency of the local oscillator (slave) to the reference oscillator (master) will be repeated as it is at the start of any link initialization process.
Loopback
Loop back of transmit data to receive via a path as close to the wire as possible.
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
47
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
When set inhibits actual transmission on the wire. Speed selection Forces speed of Phy only when autonegotiation is disabled. The default state of this bit will be determined by a power-up configuration pin in this case. Otherwise it defaults to 1. Auto-neg enable Defaults to pin programmed value. When cleared allows forcing of speed and duplex settings. When set (after being cleared) causes re-start of autoneg process. Pin programming at power-up allows it to come up disabled and for software to write the desired capability before allowing the first negotiation to commence. Restart Negotiation Power down only has effect when autonegotiating. Restarts state machine. Has no effect in this device. Test mode power down modes may be implemented in other specific modules. Isolate Puts RMII receive signals into high impedance state and
ignores transmit signals. Duplex mode When bit12 is cleared (i.e. autoneg disabled), this bit forces full duplex (bit = 1) or half duplex (bit = 0). Collision test Always 0 because collision signal is not implemented.
Register 1 (Status):
BIT 15 14 NAME 100 BASE T4 100BASE-X Full Duplex DESCRIPTION Not supported 1 = PHY is 100BASE-X full duplex capable 0 = PHY is not 100BASE-X full duplex capable 13 100BASE-X Half Duplex 12 10Mbps/s Full Duplex 11 10 Mb/s Half Duplex 10 9 100BASE-T2 full duplex 100BASE-T2 half Not supported RO 0 1 = PHY is 100BASE-X half duplex capable 0 = PHY is not 100BASE-X half duplex capable 1 = PHY is 10Mbps/s Full duplex capable 0 = PHY is not 10Mbps/s Full duplex capable 1 = PHY is 10Mbps/s Half duplex capable 0 = PHY is not 10Mbps/s Half duplex capable Not supported RO 0 RO 1 RO 1 RO 1 Read/Write RO RO Default 0 1
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
48
AN983B
duplex 8-7 6 Reserved MF Preamble Suppression
PCI/miPCI Fast Ethernet Controller with integrated PHY
RO 1 = PHY can accept management frames with preamble suppression 0 = PHY cannot accept management frames with preamble suppression RO
00 1
5 4 3 2 1 0
Autoneg Complete Remote Fault Autoneg Ability Link Status Jabber Detect Extended Capability
1 = autoneg completed, 0 = autoneg incomplete 1 = remote fault detected, 0 = no remote fault detected 1 = PHY can auto-negotiate, 0 = PHY cannot auto-negotiate 1 = link is up, 0 = link is down 1 = jabber condition detected 1 = extended register capabilities, 0 = basic register set capabilities only
RO RO, LH RO RO, LL RO, LH RO
0 0 1 0 0(see note) 1
LL LH Jabber detect
Latch Low Latch High Only used in 10Base-T mode. Reads as 0 in 100Base-TX mode.
Register 2 and 3
Each PHY has an identifier, which is assigned to the device. The identifier contains a total of 32 bits, which consists of the following: 22 bits of a 24bit organisationally unique identifier (OUI) for the manufacturer; a 6-bit manufacturer's model number; a 4-bit manufacturer's revision number. For an explanation of how the OUI maps to the register, please refer to IEEE 802-1990 clause 5.1
Register 2
BIT 15:0 NAME PHY_ID[31-16] DESCRIPTION OUI (bits 3-18) READ/WRITE RO DEFAULT 001D(Hex)
Register 3
BIT 15:1 0 9:4 PHY_ID[9-4] Manufacturer's Model Number RO 000001(bin) NAME PHY_ID[15-10] DESCRIPTION OUI (bits 19-24) READ/WRITE RO DEFAULT 001001(bin)
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
49
AN983B
(bits 5-0) 3:0 PHY_ID[3-0]
PCI/miPCI Fast Ethernet Controller with integrated PHY
Revision Number (bits 3-0); Register 3, bit 0 is LS bit of PHY Identifier
RO
0001(bin)
This uses the OUI of ADMtek, device type of 1 and rev 0.
Register 4
BIT 15 14 13 NAME Next Page Reserved Remote Fault 1 = Local remote fault sent to link partner 0 = no fault detected 12:1 1 10 9 8 Pause Not implemented 100BASE-TX full duplex Technology ability bit A5 Technology ability bit A4 Technology ability bit A3 1 = Unit is capable of Full Duplex 0 = Unit is not capable of Full Duplex 7 100BASE-TX half duplex Technology ability bit A2 1 = Unit is capable of Half Duplex 0 = Unit is not capable of Half Duplex 100BASE-TX 6 10BASE-T full duplex Technology ability bit A1 1 = Unit is capable of Full Duplex 10BASE-T 0 = Unit is not capable of Full Duplex 10BASE-T 5 10BASE-T half duplex Technology ability bit A0 1 = Unit is capable of Half Duplex 10BASE-T 0 = Unit is not capable of Half Duplex 10BASE-T 4:0 Selector Field Identifies type of message being sent. Currently only one value is defined. RO 00001 R/W 0 R/W 0 R/W 0 R/W RO R/W 0 0 0 Not implemented Technology ability bits A7-A6 RO 00 DESCRIPTION 1 = Device set to use Next Page, 0 = Device not set to use Next Page RO R/W 0 0 READ/WRITE R/W DEFAULT 0
Register 5 The register is used to view the advertised capabilities of the link partner once autonegotiation is complete.
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
50
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
The contents of this register should not be relied upon unless register 1 bit 5 is set (autoneg complete). After negotiation this register should contain a copy of the link partner's register 4. All bits are therefore defined in the same way as for register 4. All bits are read only. This register is used for Base Page code word only. Base Page Register Format
BIT 15 NAME Next Page DESCRIPTION 1 = Link Partner is requesting Next Page function 0 = Base Page is requested 14 13 12:5 4:0 Acknowledge Remote Fault Technology Ability Selector Field Link Partner selector field RO 00000 Link Partner acknowledgement bit Link Partner is indicating a fault Link Partner technology ability field. RO RO RO 0 0 00(hex) READ/WRITE RO DEFAULT 0
Register 6
BIT 15:5 4 NAME Reserved Parallel Detection Fault 3 2 1 0 Link Partner Next Page Able Next Page Able Page Received Link Partner Autonegotiation Able 1 = Local Device Parallel Detection Fault 0 = No fault detected 1 = Link Partner is Next Page Able 0 = Link Partner is not Next Page Able 1 = Local device is Next Page Able 0 = Local device is not Next Page Able 1 = A New Page has been received 0 = A New Page has not been received 1 = Link Partner is Autonegotiation able 0 = Link Partner is not Autonegotiation able RO 0 RO, LH 0 RO 1 RO 0 DESCRIPTION READ/WRITE RO RO, LH DEFAULT 000(hex) 0
LH
Latch High
7.4. DESCRIPTORS AND BUFFER MANAGEMENT
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
51
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
The AN983B provides receive and transmit descriptors for packet buffering and management.
7.4.1 RECEIVE DESCRIPTOR
7.4.1.1 Receive Descriptor Table 31 RDES0 RDES1 RDES2 RDES3
Own --Control Status Buffer2 byte-count Buffer1 address (DW boundary) Buffer2 address (DW boundary) Buffer1 byte-count
0
Descriptors and receive buffers addresses must be longword alignment
7.4.1.2 Receive Descriptor Descriptions
RDES0
Bit # 31 Name
OWN
Descriptions
Own bit 1: indicate the new receiving data can be put into this descriptor 0: Host does not move the receiving data out yet.
30-16 15
FL ES
Frame length, including CRC. This field is valid only in last descriptor Error summary, OR of the following bit 0: overflow 1: CRC error 6: late collision 7: frame too long 11: runt packet 14: descriptor error This field is valid only in last descriptor.
14
DE
Descriptor error. This bit is valid only in last descriptor 1: the current receiving packet is not able to put into the current valid descriptor. This packet is truncated.
13-12
DT
Data type. 00: normal 01: MAC loop-back 10: Transceiver loop-back 11: remote loop-back These bits are valid only in last descriptor
11 10
RF MF
Runt frame (packet length < 64 bytes). This bit is valid only in last descriptor Multicast frame. This bit is valid only in last descriptor
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
52
AN983B
9 8 7 6 5
FS LS TL CS FT First descriptor. Last descriptor.
PCI/miPCI Fast Ethernet Controller with integrated PHY
Too long packet (packet length > 1518 bytes). This bit is valid only in last descriptor Late collision. Set when collision is active after 64 bytes. This bit is valid only in last descriptor Frame type. This bit is valid only in last descriptor. 1: Ethernet type 0: 802.3 type
4 3 2 1 0
RW DB CE OF
Receive watchdog (refer to CSR15, bit 4). This bit is valid only in last descriptor. Dribble bit. This bit is valid only in last descriptorEC Packet length is not integer multiple of 8-bit. CRC error. This bit is valid only in last descriptor Overflow. This bit is valid only in last descriptor
Reserved Default = 0
RDES1
Bit # 31~26 25 24 Name
--RER RCH
Descriptions
Reserved Receive end of ring Indicates this descriptor is last, return to base address of descriptor Second address chain Use for chain structure. Indicates the buffer2 address is the next descriptor address. Ring mode takes precedence over chained mode
23~22 21~11 10~ 0
--RBS2 RBS1
Reserved Buffer 2 size (DW boundary) Buffer 1 size (DW boundary)
RDES2
Bit # 31~0 Name
RBA1
Descriptions
Receive Buffer Address 1. This buffer address should be double word aligned.
RDES3
Bit # 31~0 Name
RBA2
Descriptions
Receive Buffer Address 2. This buffer address should be double word aligned.
7.4.2. TRANSMIT DESCRIPTOR
7.4.2.1. Transmit Descriptor Table
31
0
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
53
AN983B
TDES0 TDES1 TDES2 TDES3
Own Status Control Buffer1 address Buffer2 address
PCI/miPCI Fast Ethernet Controller with integrated PHY
Buffer2 byte-count
Buffer1 byte-count
Descriptor addresses must be longword alignment
7.4.2.2. Transmit Descriptor Descriptions
TDES0
Bit # 31 Name
OWN
Descriptions
Own bit 1: Indicate this descriptor is ready to transmit 0: No transmit data in this descriptor for transmission
30-24 23-22 21-16 15
--UR --ES
Reserved Under-run count Reserved Error summary, OR of the following bit 1: under-run error 8: excessive collision 9: late collision 10: no carrier 11: loss carrier 14: jabber time-out
14 13-12 11 10 9 8 7 6-3 2 1 0
TO ----LO NC LC EC HF CC ----UF DE
Transmit jabber time-out Reserved Loss carrier No carrier Late collision Excessive collision Heartbeat fail Collision count Reserved Under-run error Deferred
TDES1
Bit # 31 30 29 28,27 26 Name
IC LS FS --AC
Descriptions
Interrupt completed Last descriptor First descriptor Reserved Disable add CRC function
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
54
AN983B
25 24 23 22 21-11 10-0
TER TCH DPD --TBS2 TBS1 End of Ring 2nd address chain
PCI/miPCI Fast Ethernet Controller with integrated PHY
Indicate the buffer2 address is the next descriptor address Disable padding function Reserved Buffer 2 size Buffer 1 size
TDES2
Bit # 31~0 Name
BA1
Descriptions
Buffer Address 1. Without any limitation on the transmission buffer address.
TDES3
Bit # 31~0 Name
BA2
Descriptions
Buffer Address 2. Without any limitation on the transmission buffer address.
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
55
AN983B 8. FUNCTIONAL DESCRIPTIONS
PCI/miPCI Fast Ethernet Controller with integrated PHY
8.1 INITIALIZATION FLOW
The flow of initialize AN983B is shown as below.
Serach NIC Get base IO address Get IRQ value Reset MAC(CSR0) Reset PHY(XR0) Need setting media type? Read EEPROM from CSR9 Set Physical address (CSR25, 26) Need setting Multicast? Yes No Set Multicast address table (CSR27, 28) Yes No (Force Media) Program the media type to PHY R0
Prepare Transmit descriptor and buffer Install NIC ISR function Open NIC interrupt Enable Tx&Rx function
End
Fig - 4 Initialization flow
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
56
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
8.2 NETWORK PACKET BUFFER MANAGEMENT
8.2.1 DESCRIPTOR STRUCTURE TYPES
For networking operation, the AN983B transmits the data packet from transmit buffers in host memory to AN983B's transmit FIFO and receives the data packet from AN983B's receive FIFO to receive buffers in host memory. The descriptors that the AN983B supports to build in host memory are used as the pointers of these transmit and receive buffers. There are two structure types for the descriptor, Ring and Chain, supported by the AN983B and are shown as below. The type selection is controlled by the bit24 of RDES1 and the bit24 of TDES1. The transmit and receive buffers are physically built in host memory. Any buffer can contain either a whole packet or just part of a packet. But it can't contain more than one packet. Ring structure There are two buffers per descriptor in the ring structure. Support receives early interrupt.
Descriptor
own
Length 2 Length 1
CSR3 or CSR4 Descriptor Pointer
Data Buffer Data Data Length 1 Length 2
Buffer1 pointer Buffer2 pointer
. . . . . .
End of Ring
Fig - 5 Ring structure of frame buffer
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
57
AN983B
Chain structure
PCI/miPCI Fast Ethernet Controller with integrated PHY
There is only one buffer per descriptor in chain structure.
Descriptor
CSR3 or CSR4 Descriptor Pointer own
--Length 1
Data Buffer Data Length 1
Buffer1 pointer Next point
own
--Length 2
Data Buffer Data Length 2
Buffer1 pointer Next point
own
--Length 3
Data Buffer Data Length 3
Buffer1 pointer Next point
. . .
. . .
Fig - 6 Chain structure of frame buffer
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
58
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
8.2.2 THE POINT OF DESCRIPTOR MANAGEMENT
OWN bit = 1, ready for network side access OWN bit = 0, ready for host side access
Transmit Descriptor Pointers
Descriptor
0
Length 2 Length 1
Data Buffer Data Data Length 1 Length 2
next packet to be transmitted own bit=2, packet1 and packet 2 are ready to transmit
Buffer1 pointer Buffer2 pointer 1 Packet 1
1 Packet 1
1 Packet 2 empty descriptor pointer
0
end of ring
0
Fig - 7 Transmit pointers for descriptor management
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
59
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
Receive Descriptor Pointers
Descriptor
0 Packet 2 own bit=1, next descriptor ready for incoming packet Data Buffer
1
1
1
filled descriptor pointer
0 Packet 1
end of ring
0 Packet 2
Fig - 8 Receive pointers for descriptor management
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
60
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
8.3 TRANSMIT SCHEME AND TRANSMIT EARLY INTERRUPT
8.3.1 TRANSMIT FLOW
The flow of packet transmit is shown as below.
Initial Program the descriptor, and place data into the host memory Change own bit to 1 Write tx demand poll
AN983B read descriptor available descriptor(own=1) read data and put into tx fifo no deferring and greater than tx threshold DO TRANSMIT read the rest data collision ? No write descriptor generate interrupt Yes back -off
End
own=0
Fig - 9 Transmit flow
8.3.2 TRANSMIT PRE-FETCH DATA FLOW
Transmit FIFO size=2K-byte Two packets in the FIFO at the same time Meet the transmit min. back-to-back
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
61
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
place the 1st packet data into host memory issue transmit demand FIFO-to-host memory operation (1st packet) Transmit enable place the 2nd packet data into host memory check point FIFO-to-host memory operation (2nd packet) place the 3rd packet data into host memory check point FIFO-to-host memory operation (3rd packet)
1st packet is transmitted, check the 3rd packet 1st packet check the next packet 2nd packet transmit threshold IFG
time
handled by driver
handled by AN983B
Fig - 10 Transmit data flow of pre-fetch data
8.3.3 TRANSMIT EARLY INTERRUPT SCHEME
Host to TX-FIFO Memory Operation Transmit data from FIFO to Media Normal Interrupt after Transmit Completed Driver return buffer to upper layer Early Interrupt after Host to TXFIFO Operation Completed Driver return buffer to upper layer time The saved time when transmit early interrupt is implemented
handled by driver
handled by AN983B
Fig - 11 Transmit normal interrupt and early interrupt comparison
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
62
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
8.4 RECEIVE SCHEME AND RECEIVE EARLY INTERRUPT SCHEME
The following figure shows the difference of timing without early interrupt and with early interrupt.
incoming packet receive FIFO operation FIFO-to-host memory operation interrupt driver read header higher layer process driver read the rest data receive early interrupt driver read header(early) higher layer process(early) driver read the rest data finish time finish time
time handled by driver
handled by AN983B
Fig - 12 Receive data flow (without early interrupt and with early interrupt)
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
63
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
The size of 1st descriptor is program as the header ed size in advance
FIFO-to-host memory operation
the 2nd descriptor the 1st descriptor is full
end of packet issue the second interrupt
receive early interrupt
driver read header(early) higher layer process(early) driver read the rest data finish time
tim e
Fig - 13 Detailed receive early interrupt flow
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
64
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
8.5 NETWORK OPERATION
8.5.1 MAC OPERATION
In the MAC (Media Access Control) portion of AN983B, it incorporates the essential protocol requirements for operating as an IEEE802.3 and Ethernet compliant node.
Format Field Preamble Start Frame Delimiter Destination Address Source Address Length/Type Description
A 7-byte field of (10101010b) A 1-byte field of (10101011b) A 6-byte field A 6-byte field A 2-byte field indicated the frame is in IEEE802.3 format or Ethernet format. IEEE802.3 format: 0000H ~ 05DCH for Length field Ethernet format: 05DD ~ FFFFH for Type field A 32-bit cyclic redundant code for error detection *Note: If padding is disabled (TDES1 bit23), the data field may be shorter than 46 bytes.
Data CRC
*46 ~ 1500 bytes of data information
Transmit Data Encapsulation The differences between the encapsulation and a MAC frame while operating in the 100BASE-TX mode are listed as follow: 1. The first byte of the preamble is replaced by the JK code according to the IEE802.3u, clause 24. 2. After the CRC field of the MAC frame, the AN983B insert the TR code according to the IEE802.3u, clause 24.
Receive Data Decapsulation When operate in 100BASE-TX mode the AN983B detects a JK code for a preamble as well as a TR code for the packet end. If a JK code is not detected, the AN983B will abort this frame receiving and wait for a new JK code detection. If a TR code is not detected, the AN983B will report a CRC error.
Deferring The Inter-Frame Gap (IFG) time is divided into two parts:
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
65
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
1. IFG1 time (64-bit time): If a carrier is detected on the medium during this time, the AN983B will reset the IFG1 time counter and restart to monitor the channel for an idle again. 2. IFG2 time (32-bit time): After counting the IFG2 time the AN983B will access the channel even though a carrier has been sensed on the network.
Collision Handling The scheduling of re-transmissions is determined by a controlled randomization process called "truncated binary exponential back-off". At the end of enforcing a collision (jamming), the AN983B delays before attempting to re-transmit the packet. The delay is an integer multiple of slot time. The number of slot times to delay before the nth re-transmission attempt is chosen as a uniform distributed integer r in the range:
0O
r < 2k
where
k = min(n, 10)
8.5.2 TRANSCEIVER OPERATION
In the transceiver portion of the AN983B, it integrates the IEEE802.3u compliant functions of PCS (physical coding sub-layer), PMA (physical medium attachment) sub-layer, and PMD (physical medium dependent) sub-layer for 100BASE-TX, and the IEEE802.3 compliant functions of Manchester encoding/decoding and transceiver for 10BASE-T. All the functions and operation schemes are described in the following sections.
100BASE-TX Transmit Operation Regarding the 100BASE-TX transmission, the transceiver provides the transmission functions of PCS, PMA, and PMD for encoding of MII data nibbles to five-bit code-groups (4B/5B), scrambling, serialization of scrambled code-groups, converting the serial NRZ code into NRZI code, converting the NRZI code into MLT3 code, and then driving the MLT3 code into the category 5 Unshielded Twisted Pair cable through an isolation transformer with the turns ratio of 1: 1.
Data code-groups Encoder: In normal MII mode application, the transceiver receives nibble type 4B data via the TxD0~3 inputs of the MII. These inputs are sampled by the transceiver on the rising edge of Tx-clk and passed to the 4B/5B encoder to generate the 5B code-group used by 100BASE-TX.
Idle code-groups In order to establish and maintain the clock synchronization, the transceiver needs to keep transmitting signals to medium. The transceiver will generate Idle code-groups for transmission when there is no real data want to be sent by MAC.
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
66
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
Start-of-Stream Delimiter-SSD (/J/K/) In a transmission stream, the first 16 nibbles are MAC preamble. In order to let partner delineate the boundary of a data transmission sequence and to authenticate carrier events, the transceiver will replace the first 2 nibbles of the MAC preamble with /J/K/ code-groups.
End-of-Stream Delimiter-ESD (/T/R/) In order to indicate the termination of the normal data transmissions, the transceiver will insert 2 nibbles of /T/R/ code-group after the last nibble of FCS.
Scrambling All the encoded data (including the idle, SSD, and ESD code-groups) is passed to data scrambler to reduce the EMI and spread the power spectrum using a 10-bit scrambler seed loaded at the beginning.
Data conversion of Parallel to Serial, NRZ to NRZI, NRZI to MLT3 After scrambled, the transmission data with 5B type in 25MHz will be converted to serial bit stream in 125HMz by the parallel to serial function. After serialized, the transmission serial bit stream will be further converted from NRZ to NRZI format. After NRZI converted, the NRZI bit stream is passed through MLT3 encoder to generate the TP-PMD specified MLT3 code. With this MLT3 code, it lowers the frequency and reduces the energy of the transmission signal in the UTP cable and also makes the system easily to meet the FCC specification of EMI.
Wave-Shaper and Media Signal Driver In order to reduce the energy of the harmonic frequency of transmission signals, the transceiver provides the wave-shaper prior the line driver to smooth but keep symmetric the rising/falling edge of transmission signals. The wave-shaped signals include the 100BASE-TX and 10BASE-T both are passed to the same media signal driver. This design can simplify the external magnetic connection with single one.
100BASE-TX Receiving Operation Regarding the 100BASE-TX receiving operation, the transceiver provides the receiving functions of PMD, PMA, and PCS for receiving incoming data signals through category 5 UTP cable and an isolation transformer with turn's ratio of 1: 1. It includes the adaptive equalizer and baseline wander, data conversions of MLT3 to NRZI, NRZI to NRZ and serial to parallel, the PLL for clock and data recovery, the de-scrambler, and the decoder of 5B/4B.
Adaptive Equalizer and Baseline Wander Since the high-speed signals over the unshielded (or shielded) twisted Pair cable will induce the amplitude attenuation and phase shifting. Furthermore, these effects are depends on the signal frequency, cable type, cable length and the connectors of the
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
67
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
cabling. So a reliable adaptive equalizer and baseline wander to compensate all the amplitude attenuation and phase shifting are necessary. In the transceiver, it provides the robust circuits to perform these functions.
MLT3 to NRZI Decoder and PLL for Data Recovery After receiving the proper MLT3 signals, the transceiver converts the MLT3 to NRZI code for further processing. After adaptive equalizer, baseline wander, and MLT3 to NRZI decoder, the compensated signals with NRZI type in 125MHz are passed to the Phase Lock Loop circuits to extract out the original data and the synchronous clock.
Data Conversions of NRZI to NRZ and Serial to Parallel After data recovered, the signals will be passed to the NRZI to NRZ converter to generate the 125MHz serial bit stream. This serial bit stream will be packed to parallel 5B type for further processing.
De-scrambling and Decoding of 5B/4B The parallel 5B type data is passed to de-scrambler and 5B/4B decoder to return their original MII nibble type data.
Carrier sensing Carrier Sense (CRS) signal is asserted when the transceiver detects any 2 non-contiguous zeros within any 10bit boundary of the receiving bit stream. CRS is de-asserted when ESD code-group or Idle code-group is detected. In half duplex mode, CRS is asserted during packet transmission or receive. But in full duplex mode, CRS is asserted only during packet reception.
10BASE-T Transmission Operation It includes the parallel to serial converter, Manchester Encoder, Link test function, Jabber function and the transmit wave-shaper and line driver described in the section of "Wave-Shaper and Media Signal Driver" of "100BASE-T Transmission Operation". It also provides Collision detection and SQE test for half duplex application.
10BASE-T Receive Operation It includes the carrier sense function, receiving filter, PLL for clock and data recovering, Manchester decoder, and serial to parallel converter.
Loop-back Operation of transceiver The transceiver provides internal loop-back (also called transceiver loop-back) operation for both the 100BASE-TX and 10BASE-T operations. Setting bit 14 of PHY register 0 to 1 can enable the loop-back operation. In this loop-back operation, PHY will not transmit packets (but PHY will still send MLT3 for Idle). In the 100BASE-TX internal loop-back operation, the data comes from the transmit output of
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
68
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
NRZ to NRZI converter then loop-back to the receive path into the input of NRZI to NRZ converter. In the 10BASE-T loop-back operation, the data is through transmitting path and loop-back from the output of the Manchester encoder into the input of Phase Lock Loop circuit of receive path.
Full Duplex and Half Duplex Operation of Transceiver The transceiver can operate for either full duplex or half duplex network application. In full duplex, both transmit and receive can be operated simultaneously. Under full duplex mode, collision (COL) signal is ignored and carrier sense (CRS) signal is asserted only when the transceiver is receiving. In half duplex mode, either transmit or receive can be operated at one time. Under half duplex mode, collision signal is asserted when transmit and receive signals collided and carrier sense asserted during transmission and reception.
Auto-Negotiation Operation The Auto-Negotiation function is designed to provide the means to exchange information between the transceiver and the network partner to automatically configure both to take maximum advantage of their abilities, and both are setup accordingly. The Auto-Negotiation function can be controlled through bit 12 of PHY register 0. The Auto-Negotiation exchanges information with the network partner using the Fast Link Pulses (FLPs) - a burst of link pulses. There are 16 bits of signaling information contained in the burst pulses to advertise all remote partners' capabilities, which are determined by PHY, register 4. According to this information they find out their highest common capability by following the priority sequence as below: 1. 100BASE-TX full duplex 2. 100BASE-TX half duplex 3. 10BASE-T full duplex 4. 10BASE-T half duplex During power-up or reset, if Auto-Negotiation is found enabled then FLPs will be transmitted and the Auto-Negotiation function will process. Otherwise, the Auto-Negotiation will not occur until the bit 12 of PHY register 0 is set to 1. When the Auto-Negotiation is disabled, then the Network Speed and Duplex Mode are selected by programming PHY register 0. Power Down Operation To reduce the power consumption the transceiver is designed with power down feature, which can save the power consumption significantly. Since the power supply of the 100BASE-TX and 10BASE-T circuits are separated, the transceiver can turn off the circuit of either the 100BASE-TX or 10BASE-T when the other one of them is operating.
8.5.3 FLOW CONTROL IN FULL DUPLEX APPLICATION
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
69
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
The PAUSE function operation is used to inhibit transmission of data frames for a specified period of time. The AN983B supports full duplex protocol of IEEE802.3x. To support PAUSE function, the AN983B implements the MAC Control Sub-layer functions to decode the MAC Control frames received from MAC control clients and execute the relative requests accordingly. When the Full Duplex mode and PAUSE function are selected after Auto-Negotiation completed, then the AN983B enables the PAUSE function for flow control of full duplex application. In this section we will describe how the AN983B implements the PAUSE function.
MAC Control Frame and PAUSE Frame
6 Octets Desti on Address nati 6 Octets So e Addr ss urc e 2 Octets Lengt /Type h =88-08h 2 Octets MAC Co l OPco e ntro d MAC Control Parameter (minFrameSi ze-160) 8 O / ctets Reser (pad with es) ved s zero
Fig - 14 MAC Control Frame Format
The MAC Control frame is distinguished from other MAC frames only by their Length/Type field identifier. The MAC Control Opcode defined in MAC Control Frame format for PAUSE function is 0001h. Besides, the PAUSE time is specified in the MAC Control Parameters field with 2 Octets, unsigned integer, in the units of Slot-Times. The range of possible PAUSE time is 0 to 65535 Slot-Times. So, a valid PAUSE frame issued by a MAC control client (could be a switch or a bridge) will contains: 1) The destination address is set equal to the globally assigned 48 bit mulitcast address 01-80-C2-00-00-01, or equal to the unicast address which the MAC control client wishes to inhibit its transmission of data frames. 2) Filled the MAC Control Opcode field with 0001h. 3) 2 Octets of PAUSE time specified in the MAC Control parameter field to indicate the length of time for which the destination is wished to inhibit data frame transmission.
Receive Operation for PAUSE function Upon reception of a valid MAC Control frame, the AN983B will start a timer for the length of time specified by the MAC Control Parameters field. When the timer value reaches zero then the AN983B ends PAUSE state. However, a PAUSE frame should not affect the transmission of a frame that has been submitted to the MAC (started Transmit out of the MAC and can't be interrupted). On the other hand, the AN983B shall not begin to transmit a frame more than one Slot-Times after received a valid PAUSE frame with a non-zero PAUSE time. If the AN983B receives a PAUSE frame with a zero PAUSE time value, then
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
70
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
the AN983B ends the PAUSE state immediately.
Opc = PAUSEFuncti on ode Wait for Transmissi Completed on
trans mission_in _pr ogress= false * DA= (01-80-C2-00-00-01 +Phys dres -ad s) DA = PAUSE F UNCTION n_s lots x = da 1 7:32] _r ta[ Start paus i mer(n_slot s_rx*sl ot_tim e) e_t UCT END P AUSE (01-80-C2 -00-00-01 +Phys res -add s)
Fig - 15 PAUSE operation receive state diagram
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
71
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
8.6 LED DISPLAY OPERATION
The AN983B provides 2 kinds of LED display mode; the detail descriptions about the operation are described in the PIN Description section.
8.6.1 FIRST MODE - 3 LED DISPLAYS FOR
100Mbps(on) or 10Mbps(off) Link (Keeps on when link ok) or Activity (Blink with 10Hz when receiving or transmitting but not collision) FD (Keeps on when in Full duplex mode) or Collision (Blink with 20Hz when colliding)
8.6.2 SECOND MODE - 4 LED DISPLAYS FOR
100 Link (On when 100M link ok) 10 Link (On when 10M link ok) Activity (Blink with 10Hz when receiving or transmitting) FD (Keeps on when in Full duplex mode) or Collision (Blink with 20Hz when colliding)
8.7 RESET OPERATION
8.7.1 RESET WHOLE CHIP
There are two ways to reset the AN983B. First, hardware reset, the AN983B can be reset via RST# pin. For ensuring proper reset operation, at least 100s active Reset input signal is required. Second, software reset, when bit 0 of CSR0 register is set to 1, the AN983B will reset entire circuits and register to default value then clear the bit 0 of CSR0 to 0.
8.7.2 RESET TRANSCEIVER ONLY
When bit 15 of PHY register 0 is set to 1, the transceiver will reset entire circuits and register
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
72
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
contains to default value then clear the bit 15 of PHY register 0 to 0.
8.8 WAKE ON LAN FUNCTION
The AN983B can assert a signal to wake up the system when it received a Magic Packet from the network. The Wake on LAN operation is described as follow.
8.8.1 THE MAGIC PACKET FORMAT
Valid destination address that can pass the address filter of the AN983B The payload of frame must include at least 6 contiguous `FF' followed immediately by 16 repetitions of IEEE address. The frame can contain multiple `six FF + sixteen IEEE address' pattern. CRC OK
8.8.2 THE WAKE ON LAN OPERATION
The Wake on LAN enable function is controlled by bit 18 of CSR18; it is loaded from EEPROM after reset or programmed by driver to enable Wake on LAN function. If the bit 18 of CSR18 is set and the AN983B receive a Magic Packet, it will assert the PME# signal (drive to low) to indicate receiving a wake up frame as well as to set the PME status bit (the bit 15 of CSR20).
8.9 ACPI POWER MANAGEMENT FUNCTION
The AN983B has a built-in capability for Power Management (PM), which controlled by the host system The AN983B will provide:
Compatibility with Device Class Power Management Reference Specification, Rev1.09 Compatibility with ACPI specification, Rev 1.0 Compatibility with PCI Bus Power Management Interface Specification, Rev 1.1 Compatibility with AMD Magic PacketTM Technology.
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
73
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
Compatibility with PCI CLKRUN scheme.
8.9.1 POWER STATES
DO (Fully On) In this state the AN983B operates as full functionality and consumes its normal power. While in the D0 state, if the PCI clock is lower than 16MHz, the AN983B may not receive or transmit frames properly.
D1 In this state the AN983B doesn't response to any accesses, except configuration space and full function context in place. The only network operation the AN983B can initiate is a wake-up event.
D2 In this state the AN983B only respond to access configuration space and full function context in place. The AN983B can't transmit or receive even the wake-up frame.
D3cold (Power Removed) In this state all function context is lost. When power is restored, the function will return to D0.
D3hot (Software Visible D3) When the AN983B is brought back to D0 from D3hot the software must perform a full initialization. The AN983B in the D3hot state respond to configurations cycles as long as power and clock are supplied. This requires the device to perform an internal reset and return to a power-up reset condition without the RST# pin asserted.
Power State
Device State D0 PCI-Bus Function State Context
B0 Full function context in place
Clock
Power
Supported Actions to Function
Any PCI transaction
Supported Actions from Function
Any PCI transaction or interrupt
Full speed
Full power
D1
B0, B1
Configuration Rx except wake-up events
Stopped to
PCI configuration Only wake-up access events
maintained. No Tx and Full speed
D2
B0, B1,
Configuration
Stopped to
PCI configuration
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
74
AN983B
B2
PCI/miPCI Fast Ethernet Controller with integrated PHY
maintained. No Tx and Full speed Rx Configuration lost, full Stopped to initialization required Full speed upon return to D0 All configurations lost. No clock Power-on defaults in place on return to D0
access (B0, B1) PCI configuration access (B0, B1) No power Power-on reset
D3hot
B0, B1, B2
D3cold
B3
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
75
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
9. GENERAL EEPROM FORMAT DESCRIPTION
Connection Type Definition
Offset 0 2 3 4 8 E F 10 11 12 14 15 Length
2 1 1 4 6 1 1 1 1 2 1 1
Description
AN983B Signature: 0x85, 0x09, AN985 Signature: 0x85, 0x19 Format major version: 0x02. Format minor version: 0x00 Reserved IEEE network address: ID1, ID2, ID3, ID4, ID5, ID6 Reserved, should be zero. Reserved, should be zero. Phytype Reserved, should be zero. Reserved, should be zero. Default Connection Type, See Table 9.1 BootRom ENABLE=1, DISABLE=0 BootRom Default selection: 0: Using INT 18h 1: Using INT 19h 2: Using Pnp/BEV (BBS) 0x10: Boot From RPL
16 20 22 24 26 28 29 2A 2E 30 52 54 7E 140
0xA 2 2 2 2 1 1 4 2 0x22 2 0x2A 2 C0
Reserved, should be zero. PCI Device ID.:0X0985 (AN983B), 0x1985(AN985) PCI Vendor ID.:0x1317 PCI Subsystem ID. PCI Subsystem Vendor ID. MIN_GNT value. 0xFF MAX_LAT value. 0xFF CIS Pointer, it will be loaded into CR10. 0x0202 CSR18 (CR) bit 31-16 recall data. Please reference AN983B Spec. Reserved, should be zero. Cardbus CIS length. Reserved, should be zero. CheckSum, the least significant two bytes of FCS for data stored in offset 0.7D of EEPROM Cardbus CIS
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
76
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
0xFFFF 0x0100 0x0200 0x0400 0x0000 0x0001 0x0002 0x0003 0x0004 0x0005 0x0010 0x0013 0x0015
Software Driver Default Auto-Negotiation Power-on Auto-detection Auto Sense 10BaseT BNC AUI 100BaseTx 100BaseT4 100BaseFx 10BaseT Full Duplex 100BaseTx Full Duplex 100BaseFx Full Duplex
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
77
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
10. ELECTRICAL SPECIFICATIONS AND TIMINGS
10.1 ABSOLUTE MAXIMUM RATINGS
Supply Voltage (Vcc) Input Voltage Output Voltage Storage Temperature Ambient Temperature ESD Protection -0.5V to 3.6V -0.5V to VCC+0.5 V -0.5V to VCC+0.5 V -65 degree C to 150 degree C 0 degree C to 70 degree C 2000V
10.2 DC SPECIFICATIONS
General DC Specifications
Parameter Description Vcc Supply Voltage Icc Power Supply Condition Min
3.0 150
Typical
Max
3.6
Units
V mA
PCI Interface DC Specifications
Parameter Vilp Vihp Iilp Volp Vohp Cinp Cclkp Description
Input LOW Voltage Input HIGH Voltage Input Leakage Current Output LOW Voltage Output HIGH Voltage Input Pin Capacitance CLK Pin Capacitance 0Condition
Min
-0.5 0.475vcc -10
Typical
Max
0.325vcc Vcc+0.5 10 0.1Vcc
Units
V V uA V V pF pF
Flash/EEPROM Interface DC Specifications
Parameter Vilf Vihf Iif Volf Vohf Description
Input LOW Voltage Input HIGH Voltage Input Leakage Current Output LOW Voltage Output HIGH Voltage Vcc - 0.2
Condition
Min
0 0.7Vcc -10
Typical
Max
0.3Vcc Vcc + 1 10 0.2
Units
V V uA V V
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
78
AN983B
Cinf
Input Pin Capacitance
PCI/miPCI Fast Ethernet Controller with integrated PHY
5
8
pF
10.3 AC SPECIFICATIONS
PCI Signaling AC Specifications for 3.3V
Parameter Description Ioh (AC) Switching Current High Iol (AC) Switching Current Low
Slew Rate
Condition
Min
Typical
4 6
Max
Units
mA mA
0.25 0.2vcc~0.6vcc 0.6vcc~0.2vcc 1 1
1 4 4
V/ns V/ns V/ns
Tr Tf
Unloaded Output Rise Time Unloaded Output Fall Time
10.4 TIMING SPECIFICATIONS
PCI Clock Specifications
Parameter Tcyc Thigh Tlow Description
Clock Cycle Time Clock High Time Clock Low Time Clock Slew Rate
Condition
Min
30 12 12 1
Typical
Max
Units
ns ns ns
4
V/ns
0.6vcc Thigh 0.4Vcc Tlow 0.2Vcc
Tcyc
Fig - 16 PCI Clock Waveform
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
79
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
PCI Timings
Parameter Tval Tval (ptp) Ton Toff Tsu Tsu (ptp) Th Trst Trst-clk Trst-off Description
Access time - bused signals Access time -point to point Float to Active Delay Active to Float Delay Input Set up Time to Clock - bused signals Input Set up Time to Clock point to point Input Hold Time from Clock Reset Active Time after Power Stable Reset Active Time after CLK Stable Reset Active to Output Float delay 40 ns 100 us 0 1 ns ms 10,12 ns 7
Condition
Min
2 2 2
Typical
Max
11 12 28
Units
ns ns ns ns ns
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
80
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
CLK
1.5Vcc
Vth=2.4Vcc Vtl=0.4Vcc Tval (max=11ns)
OUTPUT Delay
Tri-state OUTPUT
Ton Toff Tsu Th
INPUT
1.5V
1.5V
Fig - 17 PCI Timings
Flash Interface Timings
Parameter Trc Tce Taa Toe Tclz Tolz Tchz Tohz Toh Twc Tas Tah Tcs Description
Read cycle time Chip enable access time Address access time Output enable access time #CE low to active output #OE low to active output #CE high to active output #OE high to active output Output hold from address change Write cycle time Address setup time Address hold time #WE and #CE setup time 0 50 0 0 10 0 0 45 45
Condition
Min
90
Typical
Max
90 90 45
Units
ns ns ns ns ns ns ns ns ns ms ns ns ns
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
81
AN983B
Tch Toes Toeh Tcp Twp Twph Tds Tdh Tblc Tblco
#WE and #CE hold time #OE high setup time #OE high hold time #CE pulse width #WE pulse width #WE high width Data setup time Data hold time Byte load cycle time Byte laod cycle time out
PCI/miPCI Fast Ethernet Controller with integrated PHY
0 10 10 70 70 150 50 10 0.22 300 200
ns ns ns ns ns ns ns ns us us
ADDRESS Tas Tfasc Tcs Tah
CS# Twp WE# Twph
Tds DATA
Tdh
Fig - 18 Flash write timings
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
82
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
ADDRESS Trc
CS# Tce OE#
Toe
Toh
DATA
Fig - 19 Flash read timings
EEPROM Interface Timings (AC/AD)
Parameter Description Tscf Serial Clock Frequency Tecss Tecsh Tedts Tedth Tecsl Condition
2.7VMin
Typical
Max
0.4M/ 0.1M
Units
Hz ns ns
Delay from CS High to SK High 2.7VRev. 1.8
ADMtek Inc.
www.admtek.com.tw
83
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
CS Tecss Tecsh Tecsl
CLK Tedts Tedth
DI
Fig - 20 Serial EEPROM timing
MII Interface Timing
Vih(min) Vil(max) TX_CLK
Vih(min)
Vil(max) TXD<3:0>,TX_EN, TX_ER 0 ns Min 25 ns MAX
Fig- 21 Transmit signal timing relationships at the MII
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
84
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
Vih(min) Vil(max) RX_CLK
Vih(min)
Vil(max) RXD<3:0>,RX_DV, RX_ER 10 ns MIN 10 ns MIN
Fig-
22 Receive signal timing relations at the MII
Vih(min) MDC Vil(max)
Vih(min) MDIO Vil(max)
10 ns MIN 10 ns MIN
Fig-
23
MDIO sourced by STA
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
85
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
Vih(min) Vil(max) MDC
Vih(min)
Vil(max) MDIO 0 ns Min 300 ns MAX
FIG-
24
MDIO SOURCED BY PHY
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
86
AN983B 11. PACKAGE
PCI/miPCI Fast Ethernet Controller with integrated PHY
D1
E
E1
b
D
A
c
e1
L1
A1
T
Y
Fig - 25 Package outline for the AN983B / AN983BL
Dimensions for 128 -pin PQFP Package (AN983B)
Symbol A A1 b c D D1 E E1 e1 L1 T Y Description
Overall Height Stand Off Lead Width Lead Thickness Terminal Dimension 1 Package Body 1 Terminal Dimension 2 Package Body 2 Lead Pitch Foot Length Lead Angle Coplanarity
Minimum
0.25mm 0.17mm 0.13mm 23.0mm 19.9mm 17.0mm 13.9mm 0.50mm 0.65mm 0X
Maximum
3.4mm 0.27mm 0.23mm 23.4mm 20.1mm 17.4mm 14.1mm 0.95mm 7X 0.076mm
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
87
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
Dimensions for 128 -pin LQFP Package (AN983BL)
Symbol A A1 b c D D1 E E1 e1 L1 T Y Description
Overall Height Stand Off Lead Width Lead Thickness Terminal Dimension 1 Package Body 1 Terminal Dimension 2 Package Body 2 Lead Pitch Foot Length Lead Angle Coplanarity
Minimum
0.05mm 0.17mm 0.13mm 21.9.0mm 19.9mm 15.9.0mm 13.9mm 0.50mm 0.45mm 0
Maximum
1.6mm 0.15mm 0.27mm 0.23mm 22.1mm 20.1mm 16.1mm 14.1mm 0.75mm 7 0.076mm
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
88
AN983B 12. LAYOUT GUIDE (REV.1.0B)
Layout Guide Revision History:
Revision Date October, 2000 Revision
1.0b
PCI/miPCI Fast Ethernet Controller with integrated PHY
Description
Add Item 2-d to reduce receive CRC error.
12.1 PLACEMENT
Keep the distance as short as possible between Centaur-P and transformer, as well as transformer and RJ45. Make crystal device cross to Centaur-P pin x1 x2, and away from the following item:
1). Tx+/- Rx+/- differential pairs 2). PCB edge. 3). Transformer 4). Any other high frequency item and associated traces.
Tx pull high resister needs to close to chip and Rx receiving termination resister and cap need to close to transformer. De-couple cap should be placed as close to chip as possible. The traces should be short. Use ample dc-coupling and bulk capacitors to minimize noise. Use X7R ceramic capacitor for better capacitive characteristics over temperature.
12.2 TRACE ROUTING
Arrangement Tx and Rx trace
1). Tx+/- and Rx+/- trace avoid right angle signal trace, suggest round angle >90X 2). Trace width must be wide that should be 2X layout program minimum request or wide than 8 miles. 3). Signal trace length between Tx+/- differential pairs should be cross to equal length the total should no long to 2 cm.same require apply to Rx+/-. 4). Make Tx and Rx trace route at the same signal plane and had better not using bias. 5). Every differential pairs as cross as possible, but no less then 8 miles and the space should be almost equal.
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
89
AN983B
PCI/miPCI Fast Ethernet Controller with integrated PHY
6). Keep the distance between the Tx and Rx differential pairs large, even separate ground planes underneath Tx and Rx signal pairs. 7). Away from clock and power trace. 8). If possible, with GND plane around. 9). If Tx rout trace must cross, you can swap the trace between chip and transformer, and transformer to RJ45, too. 10). The high frequency signal trace width 10~12mil. 11). PCI clk signal trace length must equal 2.5inch and other PCI bus signal trace length should less then 1.5 inch
Digital signal should away from analog signal and power trace. If can't be avoided, better be cross over by 90 degree with analog/Vcc routing at other plane. Vcc trace should short and prefer route in the format of the plane a special for GND. Connect Pin 8 and pin 14 together first then use signal via to Gnd.
Bad
Good
12.3 VCC AND GND
Vcc power:
1). Avoid unnecessary Vcc trace to IC's and devices keep these trace as short and wide. 2). Power trace width > 40 mils (if power trace route to the other side .It must use several via to connect each other). 3). Power source use bulk capacitors (22~47uf) to reduce noise.
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
90
AN983B
4). Provide sample power and ground planes
PCI/miPCI Fast Ethernet Controller with integrated PHY
Power Trace
Power Switch
Power PLANE Power Switch
AN983B
AN983B
VCC FROM PCI
Not Suggestted
VCC FROM PCI
Good
GND plane
1). It is a good idea to fill in unused areas of the signal planes with solid copper 2). The signal ground region should be one continuous, unbroken plane extending from the transformer through the rest of the board. 3). On right angle is recommend when partition the Vcc and GND plane. 4). For EMI consideration, please add 0.1uF caps between system GND and chassis GND. 5). Void the power and ground plane directly under the transformer. 6). The isolation voltage of the transformer should be rated to be greater than 2kv. 7). The sample board Vcc and GND plane at below side.
RJ45
Transformer
VCC PLANE UNDER CHIP
Chassis Ground
System Ground
Rev. 1.8
ADMtek Inc.
www.admtek.com.tw
91


▲Up To Search▲   

 
Price & Availability of AN983

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X